<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>touchpad &#8211; Everything is Broken</title>
	<atom:link href="https://play.datalude.com/blog/tag/touchpad/feed/" rel="self" type="application/rss+xml" />
	<link>https://play.datalude.com/blog</link>
	<description>Efficiency vs. Inefficiency, in a no-holds barred fight.</description>
	<lastBuildDate>Thu, 17 Nov 2022 05:01:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Ubuntu Touchpad toggle tweak</title>
		<link>https://play.datalude.com/blog/2008/11/ubuntu-804-tweak-touchpad-toggle/</link>
					<comments>https://play.datalude.com/blog/2008/11/ubuntu-804-tweak-touchpad-toggle/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 10 Nov 2008 08:41:16 +0000</pubDate>
				<category><![CDATA[General IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[toggle]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://play.datalude.com/blog/?p=99</guid>

					<description><![CDATA[I've been getting irritated with the touchpad on this new Dell Vostro 1400. I type for a while, and then my palm touches the touchpad, sending the pointer skimming into the line above, or clicking on buttons I don't want to click on. So, I looked around and figured out a solution. Over the past ... <a title="Ubuntu Touchpad toggle tweak" class="read-more" href="https://play.datalude.com/blog/2008/11/ubuntu-804-tweak-touchpad-toggle/" aria-label="Read more about Ubuntu Touchpad toggle tweak">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>I've been getting irritated with the touchpad on this new Dell Vostro 1400. I type for a while, and then my palm touches the touchpad, sending the pointer skimming into the line above, or clicking on buttons I don't want to click on. So, I looked around and figured out a solution. Over the past two years, I've had to update this post for every single new version of Ubuntu, which has been a pain, so look for the heading below which corresponds to your version of Ubuntu.</p>
<p><strong>Ubuntu Hardy 8.04</strong></p>
<p>First of all, you need to edit your /etc/xorg.conf file, for which you'll need root privileges &#8211; use sudo.You just need to add one line in the input device section, which is the one in bold below. (Intrepid 8.10, see below)</p>
<pre>Section "InputDevice"</pre>
<pre>        Identifier      "Synaptics Touchpad"</pre>
<pre>        Driver          "synaptics"</pre>
<pre>        Option          "SendCoreEvents"        "true"</pre>
<pre>        Option          "Device"                "/dev/psaux"</pre>
<pre>        Option          "Protocol"              "auto-dev"</pre>
<pre>        Option          "HorizEdgeScroll"       "0"</pre>
<pre><strong>        Option          "SHMConfig"</strong></pre>
<pre>EndSection<span id="more-99"></span></pre>
<p>OK, now after you restart X, by logging out and in again, you can turn off the touchpad with</p>
<pre>    synclient TouchpadOff=0</pre>
<p>And on with</p>
<pre>    synclient TouchpadOff=0</pre>
<p>I put this together in a script which will look to see if it is on or off, and toggle it to the opposite.</p>
<pre>if synclient -l | grep TouchpadOff | grep 1</pre>
<pre>then</pre>
<pre>    synclient TouchpadOff=0</pre>
<pre>else</pre>
<pre>    synclient TouchpadOff=1</pre>
<pre>fi</pre>
<p>I attached the script to an icon in my toolbar using the Add to Panel &gt; Launcher route. Now I just have to click to toggle it off and on.</p>
<p><strong>Ubuntu 8.10, Intrepid Whatsit </strong></p>
<p>While the script above still works, editing xorg.conf doesn't work any more, as Ubuntu is moving functionality out of that file. So, instead of that we create a file here.</p>
<pre>sudo nano /etc/hal/fdi/policy/shmconfig.fdi</pre>
<p>and cut and paste the following into it, saving afterwards.</p>
<p>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br />
&lt;deviceinfo version="0.2"&gt;<br />
&lt;device&gt;<br />
&lt;match key="input.x11_driver" string="synaptics"&gt;<br />
&lt;merge key="input.x11_options.SHMConfig" type="string"&gt;True&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.HorizEdgeScroll" type="string"&gt;1&lt;/merge&gt;<br />
&lt;/match&gt;<br />
&lt;/device&gt;<br />
&lt;/deviceinfo&gt;</p>
<p>This file only works with Synaptics Touchpad driver. If you have another touchpad, the filename may be different. There are hundreds of other options which you can activate in this file, but the SHMConfig line is the one you need to allow the script to work.</p>
<p>OK, now you've done that, the commands and script above should work.</p>
<p><strong>Ubuntu 9.04 Jaunty Jackass</strong></p>
<p>&#8230;. it should work unless you upgrade to 9.04 that is. Now neither of those methods work for disabling the touchpad, which is causing me no end of irritation. So now there's a third solution which I discovered after finding the new touchpad control panel under System &gt; Preferences &gt; Mouse &gt; Touchpad. In there there is a switch to turn off the touchpad, so I figured there must be a way to change this setting with gconftool. Here's what  came up with:</p>
<p>gconftool-2 &#8211;toggle /desktop/gnome/peripherals/mouse/touchpad_enabled</p>
<p>This works from the commandline, in a script and even typed directly into a launcher button on your menubar for lightning fast toggling. Which is the only way to toggle.</p>
<p><strong>Ubuntu 9.10 Karmic Koala<br />
</strong></p>
<p>Why do they have to change this every frigging version. OK, so back to a script into which the following is inserted.</p>
<pre>if xinput list-props "SynPS/2 Synaptics TouchPad" | grep "Device Enabled" | grep 1</pre>
<pre>then</pre>
<pre>    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0</pre>
<pre>else</pre>
<pre>     xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1</pre>
<pre>fi</pre>
<p>Then assign this to a key (in my case F6) using System &gt; Preferences &gt; Keyboard Shortcuts. All seems to work again &#8230; until the next upgrade.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://play.datalude.com/blog/2008/11/ubuntu-804-tweak-touchpad-toggle/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
