| View previous topic :: View next topic |
| Author |
Message |
Dominique_71 Veteran


Joined: 17 Aug 2005 Posts: 1293 Location: Switzerland (Romandie)
|
Posted: Thu Jan 17, 2013 8:42 pm Post subject: [ati-driver] ctrl+alt+plus/minus doesn't work |
|
|
With an AMD Radeon HD7400M/HD6320, video mode switching is not working with Ctrl-Alt-+ and Ctrl-Alt--, but it is working with "xrandr -s ...". So I suspect a xorg configuration problem, but I don't understand what.
Also, as with xrandr, it work fine with the catalyst control center running as root. But xrandr is working fine as user. So it must be possible to get this key combination to work.
| Code: | xrandr
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 1600 x 1600
LVDS connected 1600x900+0+0 (normal left inverted right x axis y axis) 382mm x 214mm
1600x900 60.3*+
1440x900 60.3
1280x768 60.3
1280x720 60.3
1024x768 60.3
1024x600 60.3
800x600 60.3
800x480 60.3
640x480 60.3
DFP1 disconnected (normal left inverted right x axis y axis)
CRT1 disconnected (normal left inverted right x axis y axis)
|
| Code: |
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "amdcccle-Screen[0]-0" 0 0
EndSection
Section "Module"
EndSection
Section "ServerFlags"
Option "DefaultServerLayout" "aticonfig Layout"
Option "DontZap" "off" # control Ctrl+Alt+BackSpace
Option "DontZoom" "off" # control Ctrl+Alt+Plus/Minus
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "1-LVDS"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1600x900"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "amdcccle-Device[0]-0"
Driver "fglrx"
Option "Monitor-LVDS" "1-LVDS"
BusID "PCI:0:1:0"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1600x900" "1440x900" "1280x768" "1280x720" "1024x768" "1024x600" "800x600" "800x480" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "amdcccle-Screen[0]-0"
Device "amdcccle-Device[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
|
xorg.conf.d/30-keyboard.conf
| Code: | Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "ch"
Option "XkbVariant" "fr"
Option "XkbRules" "xorg"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
|
It done also a xorg.conf.d/50-synaptics.conf file, but I think it is not relevant here.
This is on an ~amd64 system with gentoo-sources-3.7.1, xorg-server 1.13.1.901 and ati-drivers 12.11_beta11 _________________ As the thought come before the action, revolution means revolutionary consciousness!
Fvwm-Crystal in action & here
Last edited by Dominique_71 on Sat May 18, 2013 8:05 pm; edited 2 times in total |
|
| Back to top |
|
 |
cord Apprentice


Joined: 28 Apr 2007 Posts: 190
|
Posted: Fri Jan 18, 2013 2:31 pm Post subject: Re: [ati-driver] ctrl+alt+plus/minus doesn't work |
|
|
| Dominique_71 wrote: | | I suspect a xorg configuration problem |
Is it working without xorg.conf? |
|
| Back to top |
|
 |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1989 Location: UK
|
Posted: Fri Jan 18, 2013 5:09 pm Post subject: |
|
|
| It might have been removed from xorg entirely - it doesn't work with the radeon driver either. |
|
| Back to top |
|
 |
Dominique_71 Veteran


Joined: 17 Aug 2005 Posts: 1293 Location: Switzerland (Romandie)
|
Posted: Fri Jan 18, 2013 5:51 pm Post subject: Re: [ati-driver] ctrl+alt+plus/minus doesn't work |
|
|
| cord wrote: | | Dominique_71 wrote: | | I suspect a xorg configuration problem |
Is it working without xorg.conf? |
No, I get a "No screen found" error and X fail to start. _________________ As the thought come before the action, revolution means revolutionary consciousness!
Fvwm-Crystal in action & here |
|
| Back to top |
|
 |
Dominique_71 Veteran


Joined: 17 Aug 2005 Posts: 1293 Location: Switzerland (Romandie)
|
Posted: Fri Jan 18, 2013 5:56 pm Post subject: |
|
|
| Ant P. wrote: | | It might have been removed from xorg entirely - it doesn't work with the radeon driver either. |
It work on my tower with the nvidia driver.
If you are right about the radeon driver, and I think so because I don't see any difference between the config of the 2 computers that can cause this issue with the radeon driver, the only solution seam to use xrandr and make 2 wrapper scripts. And to assign them to keybindings. _________________ As the thought come before the action, revolution means revolutionary consciousness!
Fvwm-Crystal in action & here |
|
| Back to top |
|
 |
Dominique_71 Veteran


Joined: 17 Aug 2005 Posts: 1293 Location: Switzerland (Romandie)
|
Posted: Sat Jan 19, 2013 10:34 am Post subject: |
|
|
It work. I even get more modes than with my xorg.conf So, another solution would be to hardcode the modes into the scripts.
videomodeswitch-
| Code: | #!/bin/sh
LC_ALL=C
CURRENT_MODE=$(xrandr|grep '[0-9]\*'|sed -e 's:\(^ *\)\([0-9]*x[0-9]*\).*:\2:' )
ALL_MODES=($(xrandr|grep -E "^ *[0-9]"|sed -e 's:\(^ *\)\([0-9]*x[0-9]*\).*:\2:'|sort -grs ) )
index=${#ALL_MODES[@]}
i=0
n=$(($index-1))
while [ "$i" -lt "$index" ]
do
if [ "${CURRENT_MODE}" == "${ALL_MODES[i]}" ]
then
m=$((i+1))
if [ "$m" -eq "$n" ]
then
m=0
fi
NEXT_MODE="${ALL_MODES[m]}"
fi
let "i+=1"
done
xrandr -s "${NEXT_MODE}"
|
videomodeswitch+
| Code: | #!/bin/sh
LC_ALL=C
CURRENT_MODE=$(xrandr|grep '[0-9]\*'|sed -e 's:\(^ *\)\([0-9]*x[0-9]*\).*:\2:' )
ALL_MODES=($(xrandr|grep -E "^ *[0-9]"|sed -e 's:\(^ *\)\([0-9]*x[0-9]*\).*:\2:'|sort -grs ) )
index=${#ALL_MODES[@]}
i=0
while [ "$i" -lt "$index" ]
do
if [ "${CURRENT_MODE}" == "${ALL_MODES[i]}" ]
then
m=$((i-1))
if [ "$m" -eq "-1" ]
then
m=$((${index}-1))
fi
NEXT_MODE="${ALL_MODES[m]}"
fi
let "i+=1"
done
xrandr -s "${NEXT_MODE}"
|
Any comment will be appreciated. _________________ As the thought come before the action, revolution means revolutionary consciousness!
Fvwm-Crystal in action & here |
|
| Back to top |
|
 |
Dominique_71 Veteran


Joined: 17 Aug 2005 Posts: 1293 Location: Switzerland (Romandie)
|
Posted: Sat May 18, 2013 8:04 pm Post subject: |
|
|
But that's very strange. Ctrl+Alt+KP_Add and CTRL+Alt+KP_Subtract are completely broken anyway. That script work with any binding I can try, at the exception of those 2 standard bindings which doesn't work.
xev give me
| Code: | FocusOut event, serial 40, synthetic NO, window 0x9c00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 40, synthetic NO, window 0x9c00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 40, synthetic NO, window 0x0,
keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
for kp +, and
| Code: | KeyPress event, serial 40, synthetic NO, window 0x9c00001,
root 0xc9, subw 0x0, time 470691012, (-10,436), root:(1052,498),
state 0x0, keycode 82 (keysym 0xffad, KP_Subtract), same_screen YES,
XLookupString gives 1 bytes: (2d) "-"
XmbLookupString gives 1 bytes: (2d) "-"
XFilterEvent returns: False
KeyRelease event, serial 40, synthetic NO, window 0x9c00001,
root 0xc9, subw 0x0, time 470691230, (-10,436), root:(1052,498),
state 0x0, keycode 82 (keysym 0xffad, KP_Subtract), same_screen YES,
XLookupString gives 1 bytes: (2d) "-"
XFilterEvent returns: False |
for kp -.
Last, if I make bindings to Alt+Shift+KP_Add or Alt+Shift+KP_Subtract, they work. _________________ As the thought come before the action, revolution means revolutionary consciousness!
Fvwm-Crystal in action & here |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|