[opensuse] Xmodmap is invalid when resume standby mode
I use opensuse 42.1 Gnome3 version. When I leave my laptop some minute, and back again, My Xmodmap settings (swap CapsLock and Control) and laptop touchpad VertEdgeScroll became invalid. I don't know what cause this, But basically, But I could resolve this with run following command again when i resume from standy mode. $: xmodmap ~/.Xmodmap $: synclient VertEdgeScroll=1 It have some pain to run this command frequently. so, I hope to resolve this problem (still valid when enter standby mode) at least, I want to automaticly run those command when I wakeup from standby mode. I have tried write a script in /user/lib/systemd/system-sleep case $1/$2 in pre/*) xmodmap /home/zw963/.Xmodmap ;; post/*) xmodmap /home/zw963/.Xmodmap ;; esac it not work. Thanks. -- Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Wed, 02 Mar 2016, Billy.Zheng wrote:
I use opensuse 42.1 Gnome3 version. ^^^^^^ When I leave my laptop some minute, and back again, My Xmodmap settings (swap CapsLock and Control) and laptop touchpad VertEdgeScroll became invalid.
I'd wager on some gnome3-autostart / keyboard-setting thingy again setting the keyboard after a resume. So add a xmodmap /path/to/your_xmodmap to some gnome autostart / after-resume, or make gnome somehow not set the keyboard. Sadly, adding it to ~/.xinitrc or ~/.xsessionrc is too late, as gnome-stuff comes after that, same as the "after resume" stuff you tried. The basic problem is, that gnome (and KDE btw. not sure about XFCE[1]) ignore and overwrite X11/Xorg settings. As I use neither Standby/Resume nor Gnome, I can't help with where you could put the call to 'xmodmap $YOUR_X_MODMAP'... But I'd try adding it to your gnome autostarts (via a 1-line script or so)... HTH, -dnh, using a handcrafted keymap on console and ~/.Xmodmap on X11 plus WindowMaker, but using KDE/XFCE/Gnome apps ;) [1] seems to leave the settings as long as I do not touch XFCE's keyboard settings --
[..] wieviel [..] haben 1GB Ram in ihren Computern. _Noch_ nicht. Warte mal vier, fünf Jahre, dann verlangt Sinnlos-XYZPiPiFurz (oder welche sinnfreie Zeichenkombination die dann benutzen mögen) mindestens einen P6/5 GHz, 2 GByte MhimpBHzertifiziertes UDSSR-RAM (0.5ns) und 50 GByte Plattenplatz für die Basisinstallation. Halbwegs richtig laufen tut es dann ab dem Doppelten. [Moss in suse-talk] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Billy.Zheng
-
David Haller