! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Key repeat settings lost when session is closed
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Keyboard Settings

Comments

Description Vince C. 2011-01-02 11:03:45 CET
Hi again.

Another annoying bug I'm facing with my regular user account is I need to uncheck and check back the "Enable keyboard repeat" check box in Xfce keyboard settings. I checked per-channel keyboard settings (.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml) and the Keyrepeat feature is enabled:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="keyboards" version="1.0">
  <property name="Default" type="empty">
    <property name="Numlock" type="bool" value="false"/>
    <property name="KeyRepeat" type="bool" value="true">
      <property name="Delay" type="int" value="400"/>
      <property name="Rate" type="int" value="32"/>
    </property>
  </property>
</channel>

Despite the settings the KeyRepeat feature is disabled each time I open my Xfce session. It didn't happen with a blank account however, i.e. with a user account that had no Xfce config nor cache directories.
Comment 1 Vince C. 2011-01-10 14:09:52 CET
Additional info:

The touchpad tap function is also disabled (I know it should be a separate issue but it's just an information). But what really ****** me off is that I spent the evening yesterday completely building my Xfce profile anew (except settings from non xfce-specifics like audacious, exaile, desktop wallpapers aso) and the problem is *not* cured!

For short I erased ~/.config/xfce4-session, *everything* under ~/.cache and almost everything under ~/.config/xfce4, i.e. erased all but ~/.config/xfce4/(desktop|orage|parole). I then got a blank desktop and selected the default settings for the panels. Keyboard repeat and tapping were working at that time. Then I setup my desktop and panels the way I wanted, back as had set them up before and closed my session, making sure I was saving changes. Today morning I opened my session again and keyboard repeat *and* tapping are disabled. Again...

What I don't understand is if I start from a user ID that has never run Xfce (or a brand new account), everything seems to work, keyboard repeat and tapping included! It looks like *only* my profile is giving me a hard time!

So my main activity when reopening my Xfce session every morning and every evening when I get home is to display the keyboard settings dialog, uncheck and check "enable Keyboard repeat" and run "synclient tapbutton1=1". (Please be smart enough not to tell me I can run a script...)

I've been doing that for two weeks now and believe me when I say it's *boring* (and I'm trying to stay politically correct)!

So my question is: how the heck is Xfce supposed to disable those keyrepeat and tapbutton features? Especially knowing that they were *not* disabled when I got into my session right after that big cleaning... This is driving me nuts ever since.
Comment 2 Nick Schermer editbugs 2011-01-10 14:52:41 CET
We don't adjust the tab button in any of the code, so I doubt that's Xfce's fault. Are you sure xfce4-settings-helper is started, that should enable key repeats.
Comment 3 Vince C. 2011-01-10 17:03:07 CET
(In reply to comment #2)
> We don't adjust the tab button in any of the code, so I doubt that's Xfce's
> fault. Are you sure xfce4-settings-helper is started, that should enable key
> repeats.

~ $ ps faux | grep settings
vinz      5264  0.0  0.0 119240  1140 ?        S    08:47   0:00 xfsettingsd
vinz      5287  0.0  0.0 148244  2476 ?        S    08:47   0:00 xfce4-settings-helper --display :0.0 --sm-client-id <some id>
vinz      5404  0.0  0.0 198704  2960 ?        Ss   08:47   0:06 /usr/libexec/gnome-settings-daemon

In my case, all keyboard settings are correct (keyboard layout, shortcuts) BUT the repeat feature. And keyboard tapping, of course.

Tab button? Which tab button?

The problem here is about opening my session back after saving it just once. When I had opened it right after the mass-cleaning those settings were correct (i.e. keys were repeated as expected and tapping was functional). It's only after I opened my saved session that these two features got deactivated. And only these two. But why?

My point is there is some information cached somewhere, that I probably missed; I didn't mean there was something in the code. Or maybe there's something in the code that loads cached settings that shouldn't be loaded. I really don't know what's going on but I would hate to have to start from a blank profile again. That was the kind of annoyance that made me give up Gnome in the past as I always lost things after each upgrade.

Is there *anything* else than .config and .cache that I sould have checked?
Comment 4 Vince C. 2011-01-10 17:05:12 CET
(In reply to comment #3)
> [...] And keyboard tapping, of course.

Read: *touchpad* tapping, of course, sorry.
Comment 5 Lionel Le Folgoc 2011-01-12 12:30:29 CET
(In reply to comment #3)
> ~ $ ps faux | grep settings
> vinz      5264  0.0  0.0 119240  1140 ?        S    08:47   0:00 xfsettingsd
> vinz      5287  0.0  0.0 148244  2476 ?        S    08:47   0:00
> xfce4-settings-helper --display :0.0 --sm-client-id <some id>
> vinz      5404  0.0  0.0 198704  2960 ?        Ss   08:47   0:06
> /usr/libexec/gnome-settings-daemon
> 

Do you start gnome-settings-daemon on purpose? I'm not sure, but it's possible it overrides some settings xfce4-settings-helper has set (especially if the xfconf config is ok and it doesn't occur with a new user).
Comment 6 Vince C. 2011-01-12 16:26:34 CET
> Do you start gnome-settings-daemon on purpose?

Yes, I launch Gnome services at start for the SSH agent to work properly otherwise I'm asked for my private key password each time I SSH into a server on which I have stored my public ID. Should I disable it?
Comment 7 Jérôme Guelfucci editbugs 2011-02-06 00:15:17 CET
Try removing gnome-settings-daemon please. You indeed need to check "Sart Gnome Services" if you want the keyring stuff to work, the environment variables needs by gnome-keyring-daemon are only exported in that case.
Comment 8 Vince C. 2011-02-06 19:20:55 CET
(In reply to comment #7)
> Try removing gnome-settings-daemon please. You indeed need to check "Sart Gnome
> Services" if you want the keyring stuff to work, the environment variables
> needs by gnome-keyring-daemon are only exported in that case.

Ok, I'll try with gnome-services not loaded at startup. Now given that I need the SSH agent thing running, is there a quick (and even dirty) way to have it work even if I don't launch Gnome services in XFCE?

OTOH if enabling Gnome services (it's there for a reason I guess) causes that bug, I also suppose there is something to fix for all those people who do need Gnome services, right?
Comment 9 Jérôme Guelfucci editbugs 2011-02-25 13:15:49 CET
> Ok, I'll try with gnome-services not loaded at startup. Now given that I need
> the SSH agent thing running, is there a quick (and even dirty) way to have it
> work even if I don't launch Gnome services in XFCE?

I don't think so.

> OTOH if enabling Gnome services (it's there for a reason I guess) causes that
> bug, I also suppose there is something to fix for all those people who do need
> Gnome services, right?

If you run several settings daemons which have different settings, there is nothing we can do about that. And we should not mess with that, simply don't have active auto start files for several settings daemons.

And enabling Gnome Services does not really cause the issue, it's because you have gnome-settings-daemon in your Gnome auto started applications.

And we are not even sure that gnome-settings-daemon is the issue, so the first step would be to get an actual confirmation by having you test your session without gnome-settings-daemon started. Once we identify the cause of the issue, we will be able to propose a solution.
Comment 10 Jérôme Guelfucci editbugs 2011-04-14 11:36:43 CEST
Any news on this?
Comment 11 Vince C. 2011-04-14 15:13:40 CEST
(In reply to comment #10)
> Any news on this?

Sorry, I could have sworn I had replied.

Indeed with "Start Gnome services" unchecked, the keyboard reacts normally and the problem disappears. But then the SSH agent doesn't work any longer and I must type my private key sentence everytime I SSH into a remote server. But I know it's logical.

Bug #7049

Reported by:
Vince C.
Reported on: 2011-01-02
Last modified on: 2013-01-02

People

Assignee:
Jannis Pohlmann
CC List:
5 users

Version

Attachments

Additional information