Bug 528485

Summary: Disabling of touchpad should stick through a reboot
Product: [Fedora] Fedora Reporter: David Batson <dkbatson>
Component: gpointing-device-settingsAssignee: Gianluca Sforna <giallu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: giallu, jwildebo, mikeb, peter.hutterer, psimerda, ralph.clark, rstp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gpointing-device-settings-1.5.1-1.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-10 17:01:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 513702    

Description David Batson 2009-10-12 13:22:13 UTC
Description of problem:
Disabling of Touchpad in System > Preferences > Pointing device does not stick through a reboot.

Version-Release number of selected component (if applicable):
gpointing-device-settings-1.3.1-5.fc11.i586.rpm

How reproducible:
Open: System > Preferences > Pointing device and choose turn touchpad off.
Reboot.
Touchpad is no longer disabled.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Disabling touchpad does not stick through a reboot.

Expected results:
Settings selected in System > Preferences > Pointing device stay until changed again in the applet.

Additional info:
For now I have uninstalled gpointing-device-settings and am using gsynaptics instead.  I have excluded these applets from being updated in /etc/yum.conf.

Comment 1 Peter Hutterer 2009-10-13 00:19:17 UTC
this is possibly gnome-settings-daemon conflicting. do you have "disable touchpad while typing" set in system-prefernces-mouse-touchpad?

Comment 2 David Batson 2009-10-13 00:42:34 UTC
No, I do not have "Disable touchpad while typing" set in System > Preferences > Mouse > Touchpad.  As far as I can recall, I never used this setting.

Comment 3 Gianluca Sforna 2009-10-14 08:14:26 UTC
Uhm, it seems it does not even survive a logout.

Peter, do you think you will be able to have a look at it (no need to promise a timeline, just to know I don't need to)

Comment 4 David Batson 2009-11-29 05:07:31 UTC
Same problem in Fedora 12.

Comment 5 Gianluca Sforna 2009-11-29 10:24:36 UTC
So, I investigated a bit more the issue with the help of gconftool-2 and gconf-editor; not sure it's meaningful, but I'm reporting here to share my findings.

I examined the /desktop/gnome/peripherals tree and I found out the touchpad/ subtree stores the settings of the stock Touchpad preference tab.

I tried to set the "off" value to true but it seems that the GNOME startup sequence does not reapply the gconf setting.

So the first question to fix this would be: what piece of code is supposed to restore the saved settings?

Comment 6 Peter Hutterer 2009-11-30 01:07:46 UTC
gnome-settings-daemon applies the defined keys from peripherals/touchpad. the "off" feature isn't in F12, it's not even in upstream gnome yet and has a couple of other dependencies. See https://bugzilla.gnome.org/show_bug.cgi?id=594831

if you have a touchpad off key in peripherals/touchpad, I don't know where it comes from. Can't look at gpds right now, I'm too overloaded with other stuff.

Comment 7 David Batson 2009-11-30 01:36:21 UTC
There is an "Off" selection in F12 for gpointing-device-settings.  You click on the Up or Down Arrow under Touchpad to select "Off".  This setting does turn the Touchpad off until I reboot.

Note that gpointing-device-settings was just recently added to the repositories for F12.  I first saw it in the update list yesterday, but I had not updated in several days.

Comment 8 David Batson 2009-11-30 01:45:15 UTC
I believe this: https://bugzilla.gnome.org/show_bug.cgi?id=594831 deals with a different issue.  My older T42 ThinkPad does not have a hotkey sequence to disable the TouchPad in any OS that I am aware of.  In Windows, I can disable the TouchPad if I am using the UltraNav driver.  In Windows I have to select or deselect this option from the UltraNav tab in Mouse in Windows Control Panel.

Comment 9 Peter Hutterer 2009-11-30 04:59:35 UTC
(In reply to comment #8)
> I believe this: https://bugzilla.gnome.org/show_bug.cgi?id=594831 deals with a
> different issue.  My older T42 ThinkPad does not have a hotkey sequence to
> disable the TouchPad in any OS that I am aware of.  In Windows, I can disable
> the TouchPad if I am using the UltraNav driver.  In Windows I have to select or
> deselect this option from the UltraNav tab in Mouse in Windows Control Panel.  

it's a different issue but this patch introduces a new touchpad_enabled key that disables the touchpad. in GNOME Bug 594831 the trigger to this key is Fn + F8, but you could trigger this key through other means.

Comment 10 Gianluca Sforna 2009-11-30 07:36:41 UTC
(In reply to comment #6)
> gnome-settings-daemon applies the defined keys from peripherals/touchpad. 
Thanks , that's useful

> the
> "off" feature isn't in F12, it's not even in upstream gnome yet and has a
> couple of other dependencies. See
> https://bugzilla.gnome.org/show_bug.cgi?id=594831
> 
> if you have a touchpad off key in peripherals/touchpad, I don't know where it
> comes from.

Uhm, maybe from gsynaptics I had previously installed to check gpds properly obsolete it

> Can't look at gpds right now, I'm too overloaded with other stuff.  
np, you help always appreciated

Comment 11 Peter Hutterer 2009-11-30 23:17:05 UTC
(In reply to comment #10)
> Uhm, maybe from gsynaptics I had previously installed to check gpds properly
> obsolete it

all the control-center/g-s-d keys have schemas. any key you have in peripherals/touchpad without a schema is likely a leftover from something else (and gsynaptics rings a bell. I cleaned out my gconf keys and found a now-useless "off" key in there).

Comment 12 David Batson 2009-11-30 23:41:38 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Uhm, maybe from gsynaptics I had previously installed to check gpds properly
> > obsolete it
> 
> all the control-center/g-s-d keys have schemas. any key you have in
> peripherals/touchpad without a schema is likely a leftover from something else
> (and gsynaptics rings a bell. I cleaned out my gconf keys and found a
> now-useless "off" key in there).  

Maybe I am misreading you, but here is what I experienced.  I installed gsynaptics in F12 soon after installing F12 on my system.  I disabled my touchpad using gsynaptics without issue.

Some days later I saw the update for gpointing-device-settings.  Instead of updating right away, I uninstalled gsynaptics first, then I installed gpointing-device-settings.  I then went in and disabled the touchpad.  Worked fine until I rebooted.  Each time I rebooted, I had to again disable the touchpad in gpointing-device-settings (from System > Preferences).

So the point is, my touchpad can be disabled with gpointing-device-settings, and without gsynaptics installed (although gsynaptics leftovers could exist I suppose) - however this only works until I reboot.

Comment 13 Peter Hutterer 2009-11-30 23:54:24 UTC
(In reply to comment #12)
> Maybe I am misreading you, but here is what I experienced.  I installed
> gsynaptics in F12 soon after installing F12 on my system.  I disabled my
> touchpad using gsynaptics without issue.

gsynaptics used the keys in peripherals/touchpad, and so does gnome-settings-daemon. hence once you install gsynaptics, you'll get a mix of those by g-s-d and gsynaptics. when you remove gsynaptics, the keys stay around.

gpds uses device-name specific keys, not the ones in peripherals/touchpad.

> Some days later I saw the update for gpointing-device-settings.  Instead of
> updating right away, I uninstalled gsynaptics first, then I installed
> gpointing-device-settings.  I then went in and disabled the touchpad.  Worked
> fine until I rebooted.  Each time I rebooted, I had to again disable the
> touchpad in gpointing-device-settings (from System > Preferences).
> 
> So the point is, my touchpad can be disabled with gpointing-device-settings,
> and without gsynaptics installed (although gsynaptics leftovers could exist I
> suppose) - however this only works until I reboot.  

right, this is a bug in gpds. the key it sets is in peripherals/<insert touchpad name>/off though, so it's easy to confuse with the peripherals/touchpad/off key (the gsynaptics leftover) when debugging. my previous comments were more to clarify the situation with the myriad gconf keys. I'm not doubting the bug itself :)

Comment 14 Gianluca Sforna 2009-12-01 07:55:28 UTC
(In reply to comment #13)
> the key it sets is in peripherals/<insert
> touchpad name>/off though, so it's easy to confuse with the
> peripherals/touchpad/off key (the gsynaptics leftover) when debugging.

Ok, I got that correctly. Now the next question is (sorry for being clueless, I'm just an average monkey-packager): how gpsd is supposed to tell gnome-settings-daemon to read settings from "peripherals/<insert touchpad name>/" and restore the user's preferences at login?

Comment 15 Peter Hutterer 2010-01-15 03:27:42 UTC
looks like it installs a g-s-d plugin that then takes care of this (judging by the spec file anyway)

Comment 16 Jan Wildeboer 2010-02-26 13:04:27 UTC
On a Lenovo T400 with F12 x86_64, fully updated, same symptom. I have ONLY gpointing-device installed, no gsynaptics.

I can switch off the touchpad but it will onlz stick for the current session. The setting will not even survive a lock screen/login again cycle.

So in its current state the whole gpointing thing is effectively useless.

Jan

Comment 17 Gianluca Sforna 2010-02-26 15:21:50 UTC
I agree with Jan, unfortunately my current Gnome/GTK skills prevent me from finding the culprit here.

I checked the code and the plugin Peter mention is really there; I don't know why it's apparently not doing its job.

Any help appreciated

Comment 18 Fedora Update System 2010-04-15 22:32:06 UTC
gpointing-device-settings-1.5.1-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gpointing-device-settings-1.5.1-1.fc12

Comment 19 Fedora Update System 2010-04-16 23:35:51 UTC
gpointing-device-settings-1.5.1-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gpointing-device-settings'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gpointing-device-settings-1.5.1-1.fc12

Comment 20 Fedora Update System 2010-05-10 17:00:47 UTC
gpointing-device-settings-1.5.1-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Ralph Clark 2010-09-28 01:05:05 UTC
I'm still experiencing the same problem with gpointing-device-settings-1.5.1-2.fc13.i686 on Fedora 13 . With the additional pain that when I disable the touchpad in gpointing-device-settings the device doesn't even remain off for the whole session, it always turns itself back on within an hour or so.

I checked in gconf-editor and saw that although it was turned off via 

desktop/gnome/peripherals/<TouchPad device name>/off = 1

it was still being forced back on by

desktop/gnome/peripherals/touchpad/off = 0

Comment 22 Pavel Šimerda (pavlix) 2012-03-20 23:18:34 UTC
This bug is most probably present in Fedora 17 (I only have trackpoint).

gpointing-device-settings-1.5.1-7.fc17.x86_64

Bug 713534 looks similar to this one.

Comment 23 rstp 2013-01-12 23:24:44 UTC
I confirm that it's still present in Fedora 17 and it's related to https://bugzilla.redhat.com/show_bug.cgi?id=713534

Comment 24 Peter Hutterer 2013-01-21 01:04:51 UTC
fwiw, looks like gpointing-device-settings is largely dead, I don't expect this bug to be fixed quickly. http://git.gnome.org/browse/gpointing-device-settings/log/ doesn't show any updates since 2010 (other than translations).

You can disable the touchpad in the gnome mouse & touchpad settings panel, simply flick the on/off switch next to the touchpad (this is F18, not sure about F17, I forgot when this was added. sorry). alternatively:

gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false

Comment 25 Pavel Šimerda (pavlix) 2013-01-21 12:01:51 UTC
Do you have suggestions for other settings without filing a new bug report?

I'm currently using the following script:

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Device Accel Profile" 8 3
xinput set-float-prop "TPPS/2 IBM TrackPoint" "Device Accel Velocity Scaling" 30
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 16 200
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5

It runs on every login but I would prefer a standard solution in Gnome. And it unfortunately doesn't run when waking from hibernation and the settings are lost during that.

I will file a separate RFE if needed but currently I'm not sure what to ask for.

Comment 26 David Batson 2013-01-21 14:31:42 UTC
For toggling [disabling] the TouchPad on my X220, I just have to press Fn + F8.

To enable TrackPoint middle button scrolling I do the following:
http://forums.fedoraforum.org/showthread.php?t=280930

Comment 27 Peter Hutterer 2013-01-22 01:06:51 UTC
(In reply to comment #25)
> Do you have suggestions for other settings without filing a new bug report?
> 
> I'm currently using the following script:
> 
> xinput set-int-prop "TPPS/2 IBM TrackPoint" "Device Accel Profile" 8 3
> xinput set-float-prop "TPPS/2 IBM TrackPoint" "Device Accel Velocity
> Scaling" 30
> xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
> xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8
> 2
> xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout"
> 16 200
> xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6
> 7 4 5
> 
> It runs on every login but I would prefer a standard solution in Gnome. And
> it unfortunately doesn't run when waking from hibernation and the settings
> are lost during that.
> 
> I will file a separate RFE if needed but currently I'm not sure what to ask
> for.

unfortunately many settings are a race between gnome supporting it and gnome providing a UI. gnome doesn't yet handle wheel emulation, so you can set this in an xorg.conf.d snippet that matches on the device name.

The acceleration is partially supported by gnome I think, so you will need to keep running this as a script. http://who-t.blogspot.com.au/2011/03/custom-input-device-configuration-in.html may be helpful though.

Comment 28 Pavel Šimerda (pavlix) 2013-01-22 11:03:48 UTC
I still can't understand how much Gnome fails in this respect. I don't need a GUI, some gsettings value is good enough for me, but of course for a casual user that wants his scrolling, that wouldbe nice too.