Seems to work, so here's how to reproduce. Notice that this will disable
the screensaver pinging of tvtime, so the screen saver can turn on if
you leave the machine. This should work in all Debian-based distros
(Ubuntu included) where the shift key is stuck while watching tvtime
problem happens (usually with Nvidia 9600 video cards).

First, open the terminal and type (with root user):

cd /tmp
apt-get remove tvtime
apt-get source tvtime
apt-get build-dep tvtime

This will remove the old tvtime version, then get its sources and the
build dependencies into the tmp folder. You'll now need to edit a file
called xcommon.c, which is in the src folder of the source package. The
exact path will be based on the tvtime version in the repositories, you
can do it from the terminal like:

cd tvtime-*
nano src/xcommon.c

You'll need to find this function (it's line 1103 in my version).:

void xcommon_ping_screensaver( void )
{
    struct timeval curtime;

    if( !time_initialized ) {
        gettimeofday( &last_ping_time, 0 );
        time_initialized = 1;
    }
...

Change the above to look like this:

void xcommon_ping_screensaver( void )
{
    struct timeval curtime;
    return;
    if( !time_initialized ) {
        gettimeofday( &last_ping_time, 0 );
        time_initialized = 1;
    }
...

This will effectively disable the screen saver pinging (with the shift
key). Now you can build and install the application (from the source
package folder):

./configure
make
make install

There, you have tvtime installed, and the shift gets stuck problem is
gone too.

It's also possible to build a .deb, you need to edit the
debian/changelog file and add a new entry, then execute dpkg-
buildpackage from the source folder.

Here's a link to the pre-built package for Debian squeeze (should work
on Ubuntu too) i386:

http://tmarki.com/tvtime_1.0.2-6.1-noscreensaver_i386.deb

I hope this helps someone.

-- 
shift key get stuck randomly
https://bugs.launchpad.net/bugs/588473
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-input-keyboard in ubuntu.

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to