xmodmap settings are forgotten/lost during session
Hello,
after upgrading my Debian sid machine to the latest packages (see list
below according to dpkg.log) I lost my F19/F20 mapping done via xmodmap
for the Forward/Back keys of my notebook.
After investigation the issue I ran
xmodmap ~/.Xmodmap
on my settings manually and it worked, but after a while (since I don't
use those keys anywhere apart from the browser I don't quite tell how
much time passed) the keys stopped working again, also
xmodmap -pke
didn't list the key mappings any longer. And this happens all the time,
I can set up the mappings, but after a while they're gone. Nothing
special seem to trigger this (not resuming from S3, for example), just
time passing long enough seems to make something on my system reset the
mappings.
I'm not sure what might be the culprit here, and I don't quite know how
to debug this (there's no way to listen to this kind of reconfiguration
event I guess?), does anybody here have an idea if the latest XFCE
updates might be the cause?
Cheers
Wolfgang
PS: the list of packages that got upgraded after which the problem
started showing up, most are probably completely unrelated:
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110427192046.GA11513@lenny.spiney.org">http://lists.debian.org/20110427192046.GA11513@lenny.spiney.org
04-28-2011, 12:06 AM
Steve Kleene
xmodmap settings are forgotten/lost during session
On Wed, 27 Apr 2011 21:20:46 +0200, Wolfgang Karall wrote:
> after upgrading ... I lost my F19/F20 mapping done via xmodmap
About a week ago my ~/.Xmodmap, which turns off Caps Lock, started being
ignored. It is not even accessed (as judged by ls -lu) when I start X.
According to the report for bug 622185, this happened when xkb-data was
upgraded from 1.8-2 to 2.1-2. Since you don't list xkb-data among your
upgraded packages, maybe this is irrelevant to your problem.
For my problem, the workaround was to add this to ~/.xinitrc:
setxkbmap -option ctrl:nocaps
There may be a similar workaround for your situation.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: loom.20110428T020614-199@post.gmane.org">http://lists.debian.org/loom.20110428T020614-199@post.gmane.org
04-28-2011, 06:39 AM
Wolfgang Karall
xmodmap settings are forgotten/lost during session
Hello,
On 04/28/2011 02:06 AM, Steve Kleene wrote:
> On Wed, 27 Apr 2011 21:20:46 +0200, Wolfgang Karall wrote:
>
>> after upgrading ... I lost my F19/F20 mapping done via xmodmap
>
> About a week ago my ~/.Xmodmap, which turns off Caps Lock, started being
> ignored. It is not even accessed (as judged by ls -lu) when I start X.
The problem is not so much that ~/.Xmodmap is not read when X starts (I
could work around that I guess), but that the mappings I have set up
with xmodmap are vanishing while I'm using my notebook.
So something resets my mappings on a more or less regular basis (I'll
probably set up a cronjob with xmodmap -pke to find out some timing
here) without me ever telling my system to do so.
Cheers
Wolfgang
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DB90B8B.1070700@karall-edv.at">http://lists.debian.org/4DB90B8B.1070700@karall-edv.at
05-03-2011, 06:28 PM
Wolfgang Karall
xmodmap settings are forgotten/lost during session
Hello,
trying to investigate this further, I set up a Cron job running every
minute executing the following commands:
I.e. I check whether my mapping for F19 is still and generate some
output to get an email from Cron every time the settings are gone,
reloading the settings in the last line. The first is just a check
whether there's actually a X11 session on the first DISPLAY.
And I get a regular pattern, exactly every 10 minutes my xmodmap
settings get flushed. Of course I searched for other Cron jobs, but to
no avail.
What else could reset my keyboard settings every 10 minutes? Or has
anyone an idea how to debug this further?
Cheers
Wolfgang
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110503182801.GA29275@lenny.spiney.org">http://lists.debian.org/20110503182801.GA29275@lenny.spiney.org
09-07-2011, 04:01 PM
yaya
xmodmap settings are forgotten/lost during session
Wolfgang Karall <lists+debian-user <at> karall-edv.at> writes:
>
> Hello,
>
> trying to investigate this further, I set up a Cron job running every
> minute executing the following commands:
>
> DISPLAY=:0.0 xmodmap > /dev/null 2>&1 &&
> DISPLAY=:0.0 xmodmap -pke | grep -q F19 || echo xmodmap gone &&
> DISPLAY=:0.0 xmodmap ~/.Xmodmap
>
> I.e. I check whether my mapping for F19 is still and generate some
> output to get an email from Cron every time the settings are gone,
> reloading the settings in the last line. The first is just a check
> whether there's actually a X11 session on the first DISPLAY.
>
> And I get a regular pattern, exactly every 10 minutes my xmodmap
> settings get flushed. Of course I searched for other Cron jobs, but to
> no avail.
>
> What else could reset my keyboard settings every 10 minutes? Or has
> anyone an idea how to debug this further?
>
> Cheers
> Wolfgang
>
>
a few months later... but perhaps it'll be archived and useful to someone.
I have the exact same symptoms on my box based on xfce 4, the culprit
is a panel plugin xfc4-xkb-plugin 0.5.4.1-1, which I use to switch between
languages. it resets the layout every 10 minutes.
from the README:
Known limitations and bugs
==========================
Currently if one sets any Xkb options, besides the grp: ones
they will be lost the next time the plugin is started. Even
more - only the first grp: option present in the running
configuration will be stored in the config file and thus only
it will be restored the next time the plugin is started. This
will be resolved in future versions.
the README also mentions an undocumented (well...) config file option
called
I edited the file which on my machine was found at:
~/.config/xfce4/panel/xkb-plugin-??.rc
and changed the 'never_modify_config' option to true. i then 'kill -9'
the xfce4-xkb-plugin process which respawned and reloaded the conf file.
the problem disappeared, I can manage keyboard layouts through
the xfc4 settings/keyboard menu, and still switch languages
using the xkb panel plugin.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: loom.20110907T165507-529@post.gmane.org">http://lists.debian.org/loom.20110907T165507-529@post.gmane.org