Bug 17068 - [Q965]"xrandr --rmmode" fail
Summary: [Q965]"xrandr --rmmode" fail
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 00:37 UTC by lin, jiewen
Modified: 2008-09-02 22:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (3.57 KB, text/plain)
2008-08-11 00:37 UTC, lin, jiewen
no flags Details
Xorg.0.log (260.92 KB, text/plain)
2008-08-11 00:37 UTC, lin, jiewen
no flags Details
xserver patch for user mode ref counting issue (418 bytes, patch)
2008-09-02 01:10 UTC, Wang Zhenyu
no flags Details | Splinter Review

Description lin, jiewen 2008-08-11 00:37:04 UTC
Created attachment 18208 [details]
xorg.conf

System Environment:
--------------------------

--Platform: q965
--Architecture(32-bit,64-bit,compatiblity): 32-bit
--2D driver: master   fe90c0522f65f60c4c431787c889b7fb639ab61b
--3D driver: master 1724334d7c82abe55b6506dfe369df4facae6f06
--DRM:  master  e1b8e79796b172c356af98eb49107c8abbebfe5a
--Xserver: master 26d31ad1c7f4c550d73419ecf76912d844186b30
--Kernel: 2.6.26-rc8
--Display connector: VGA

Bug detailed description:
--------------------------
here is the error info:
  X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  148 (RANDR)
  Minor opcode of failed request:  17 ()
  Serial number of failed request:  14
  Current serial number in output stream:  15

Reproduce steps:
----------------
1 X &
2 xterm
3 xrandr --rmmode 720x400

Current result:
----------------
fail

Expected result:
----------------
normal
Comment 1 lin, jiewen 2008-08-11 00:37:43 UTC
Created attachment 18209 [details]
Xorg.0.log
Comment 2 Wang Zhenyu 2008-09-02 01:09:23 UTC
You can't remove modes generated by X probe, you can only create/delete user mode (rmmode only on newmode). So this bug is invalid.

Although I found remove modes created with xrandr newmode option still got error, seems ref counting issue, patch is following.
Comment 3 Wang Zhenyu 2008-09-02 01:10:19 UTC
Created attachment 18632 [details] [review]
xserver patch for user mode ref counting issue
Comment 4 Wang Zhenyu 2008-09-02 18:53:01 UTC
Pushed fix to xserver master.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.