Enabling Side Buttons of Scrolls V470 in Gutsy

After resuming for long holidays, just realize that someone ask me through commenting of my previous posting asking about enabling side buttons in V470 that I was missed before. Thanks pershy for reminding me.

Actually, there are several ways to do it, but I will write just one of them:

  • Get information of your device by issuing
  • $ cat /proc/bus/input/devices
    inspect similar to these following lines:
    I: Bus=0005 Vendor=046d Product=b008 Version=0313
    N: Name="Bluetooth Laser Travel Mouse"
    P: Phys=[your device's physical id]
    S: Sysfs=/class/input/input[your input device sequence number]
    U: Uniq=[your device unique bluetooth address]
    H: Handlers=mouse2 event6
    B: EV=7
    B: KEY=ff0000 0 0 0 0
    B: REL=143

  • Edit your /etc/X11/xorg.conf to have:
  • Section "InputDevice"
    Identifier "V470"
    Driver "evdev"
    Option "Name" "Bluetooth Laser Travel Mouse"
    Option "Dev Phys" "[your device's physical id]"
    EndSection
    ...
    Section "ServerLayout"
    ...
    InputDevice "V470"
    ...
    EndSection

  • Restart your X (Ctrl+Alt+Backspace)
  • From xev we can get button code of left or right direction of scroll button, left is 11 and right is 12
  • Next step, I want to bind it to key of back and forward history in Firefox that is Alt+Left and Alt+Right button
  • Install xbindkeys
  • $ sudo apt-get install xbindkeys xvkbd

  • Create ~.xbindkeysrc and put this lines:
  • "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
    b:11
    "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
    b:12

  • Execute xbindkeys for current session, and add it to System->Preference->Sessions to load it on each logon

I hope this will help you…

Advertisements

Solving Problem Logitech V470 in Vista (maybe other bluetooth mice)

If you experience your mouse is not immediately connect to your PC/Notebook after restart/suspend/hibernate, or after your mouse switch off and on again, than maybe this one is your main problem.

Due to security reason, by default, Windows Vista is not allowing bluetooth devices to connect to your PC/Notebook. You can change this behavior by do following steps:

  1. Open Bluetooth Device dialog
  2. Open Option tabs
  3. Check Allow Bluetooth devices to connect to this computer check box
  4. To get notice every time when there is untrusted device that want to connect to your PC/Notebook, check also Alert me when a new Bluetooth device wants to connect check box

Medibuntu

If you have trouble to play movie and music in your Ubuntu, this url would be help, I hope….

If you need to play other format you can do this:
$ sudo apt-get install gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse streamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3

Gnome and GDM shows Difference Time

I have classic problem after installing some of Linux distro, including default installation of Gutsy. The problem is time difference shown by Gnome and GDM. Usually I ignore it, but yesterday my friend ask me why is the time not correct? That question disturbing me and push me to find the solution to make it synch between Gnome and GDM .

After searching for a while, finally found in ubuntu forum explain how to resolve it.

Simply edit /etc/default/rcS and change the UTC=yes to UTC=no and reboot.

Installing CSKamp – Coolstack 1.2 – in Local Zone on Solaris 10

Cool Stack is a collection of some of the most commonly used open source applications optimized for the Sun Solaris OS platform. By using these binaries you will enjoy the best levels of performance from your system, while also reducing your time-to-service.

Here are step by step to install CSKamp in Local Zone:

  1. Create sparse zone
  2. Login to that zone
  3. Obtain CSKamp and CSKruntime binary package from here (you need a registered SDN account membership to get it)
  4. bunzip2 the packages
  5. Install CSKruntime
  6. Install CSKamp

Configure and Run PostgreSQL 8.2 in Local Zone – Solaris 10 U4

Solaris 10 U4 is shipped with PostgreSQL 8.2. If you need to enable it, so here are the steps to enable PostgreSQL in local zone on Solaris 10 U4.

  1. Create sparse zone
  2. Login to that zone
  3. Do the following steps to initialize PostgreSQL database:
    • As root su to postgres user:
        # su - postgres
    • Create PostgreSQL DB:
        $ /usr/postgres/8.2/bin/initdb -D /var/postgres/8.2/data
    • As root, use the SMF’s svcadm command to start PostgreSQL
        # /usr/sbin/svcadm enable postgresql:version_82

If you need to enable your PostgreSQL become able to remotes through TCP/IP connection then you need to do the following steps:

  1. Edit /var/postgres/8.2/data/pg_hba.conf
    • Add additional lines that represents your requirements. Follow the instruction and sample inside that file.
  2. Edit /var/postgres/8.2/data/postgresql.conf
    • Edit default value listen_addresses = 'localhost' to become listen_addresses = '*' or to specific host according to your requirements.
  3. Restart your PostgreSQL
    • # /usr/sbin/svcadm restart postgresql:version_82

To test the TCP/IP connection you can use psql command as following:
# psql -h <hostname> -U <database username> -d <database name>

Ubuntu with Logitech V470

Just got in hand my new Logitech V470 Bluetooth Laser Mouse -Tikus Laser Gigi Biru, my college said in Indonesian :). I purchase the white one, look nice with Apple style, more lighter than my previous Logitech V400 and got punch pocket to store it.

Ok, here are the step-by-step enabling your Logitech Mouse V470 in Gutsy:

  • If you don’t have gnome-vfs-obexftp were not installed, so issue this command:
    $ sudo apt-get install gnome-vfs-obexftp
  • From bluetooth applet right-click to show the context menu, and choose Preference
  • Click Services tab, make sure Input service checkbox were enabled, click Add button
  • Choose Bloetooth Laser Travel Mouse