Wednesday 17 June 2009

make wifi light indicator of acer 5920g work under ubuntu 8.04 hardy heron

Install the linux-restricted modules and it should be OK.

make multimedia keys and scroll buttons of an acer 5920g work in ubuntu 8.04 hardy heron

Roughly,
backup your xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original

edit the xorg.conf
sudo gedit /etc/X11/xorg.conf

to the following

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
# Option "CorePointer"
Option "SendCoreEvents" "true"
EndSection

#Section "InputDevice"
# Identifier "Synaptics Touchpad"
# Driver "synaptics"
# Option "SendCoreEvents" "true"
# Option "Device" "/dev/psaux"
# Option "Protocol" "auto-dev"
# Option "HorizEdgeScroll" "0"
#EndSection

Section "InputDevice"
Identifier "TouchPad"
Driver "synaptics"
Option "CorePointer"
Option "Protocol" "event"
Option "Device" "/dev/input/eventtouchpad"
Option "MaxTapTime" "100"
Option "MaxTapMove" "220"
Option "AccelFactor" "0.05"
Option "SHMConfig" "true"
EndSection

Section "InputDevice"
Identifier "AcerMediaKeys"
Driver "evdev"
Option "Device" "/dev/input/eventkeys"
Option "SendCoreEvents" "true"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
# Inputdevice "Synaptics Touchpad"
Inputdevice "TouchPad"
Inputdevice "AcerMediaKeys"
Inputdevice "Configured Mouse"
EndSection

Section "Module"
Load "glx"
EndSection
###########################################


Now do the following:
sudo gedit /etc/udev/rules.d/10-acersynaptics.rules

and paste the following:
SUBSYSTEMS=="input", ATTRS{phys}=="isa0060/serio4/input0", KERNEL=="event*", NAME="input/eventtouchpad"
SUBSYSTEMS=="input", ATTRS{phys}=="isa0060/serio3/input0", KERNEL=="event*", NAME="input/eventkeys"


Save and exit. I think this should be enough for the scroll buttons.

For the multimedia keys now to work.
Install xbindkeys
sudo apt-get install xbindkeys

Make them run at startup. The simplest is go to System->Preferences->Session

On your home directory
gedit ~/.xbindkeysrc

and paste the following (this is for exaile).
"exaile -t"
b:17

"exaile -s"
b:18

"exaile -p"
b:19

"exaile -n"
b:20


Restart and it should now be working.
I think that's all. There is also a post in the ubuntuforums from which I got the info.

ubuntu 8.04 hardy heron, mute speakers when plugging in headphones, acer 5920g

Add to /etc/modprobe.d/alsa-base the following line

options snd-hda-intel model=lenovo-ms7195-dig

From:
http://ubuntuforums.org/showthread.php?t=995940

Alternatives found in:
http://ubuntuforums.org/showthread.php?t=798945

Getting started with hi-tide under ubuntu 8.04

Check the following pages:
  1. http://www.ece101.com/2008/07/getting-started-with-hi-tech-c-i/
  2. http://www.ece101.com/2008/07/getting-started-with-hi-tech-c-ii/
  3. http://www.ece101.com/2008/07/getting-started-with-hi-tech-c-iii/
  4. http://www.ece101.com/2008/08/using-the-pickit-2/
  5. http://www.ece101.com/2008/08/configuration-words-for-the-pic16f690/

Get free Ubuntu stickers

Show your Ubuntu pride !!
FREE strip of four 'powered by Ubuntu' stickers

Send a self addressed stamped envelope to:

United Kingdom

The Linux Emporium
Bridge House
17a Maybrook Road
Sutton Coldfield
Birmingham
B76 1AL UK

pickit2 setup with pk2cmd under ubuntu 8.04

1. Download pk2cmd and unzip the files in a suitable directory (If link is broken search for the main web page of the pickit2 in the microchip website)

2. Read the readme file. Basically:
$ sudo cp pk2cmd /usr/local/bin
$ sudo chmod 755 /usr/local/bin/pk2cmd
$ sudo mkdir /usr/share/pk2
$ sudo cp PK2DeviceFile.dat /usr/share/pk2
$ sudo chmod 755 /usr/share/pk2/PK2DeviceFile.dat

Add to your .bashrc the two directories. usr/local/bin:usr/share/pk2 and source if necessary

Follow the these instructions
Sort story:

For distributions using "udev" (Debian Sid, Ubuntu 6,7,8,...)

The following procedure may be used to be able to connect to the ICD2/Pickit programmers
as a regular user on distributions using udev [thanks to David Williams]:
  • Create file /etc/udev/rules.d/026_microchip.rules:
#PICKit
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0032", MODE="0660", GROUP="microchip"
#PICKit2
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="0033", MODE="0660", GROUP="microchip"
#ICD2
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8000", MODE="0660", GROUP="microchip"
#ICD21
SYSFS{idVendor}=="04d8", SYSFS{idProduct}=="8001", MODE="0660", GROUP="microchip"
  • Create a group named "microchip" and add your username to this group:
sudo addgroup microchip
(Note: for Arch Linux, it is "groupadd".)
sudo gpasswd -a your_user_name microchip
3. Reboot

4. Test by
$ sudo pk2cmd -P
If root is fine then
$ pk2cmd -P

5. The following websites are also useful:
http://mcuee.blogspot.com/2008/04/pk2cmd-linux-port-under-ubuntu.html
http://home.pacbell.net/theposts/picmicro/

emacs (< 22) & python

Download python-mode.el from http://sourceforge.net/projects/python-mode/
Add the following to the .emacs file:

(autoload 'python-mode "$PATH-TO-EMACS-SCRIPTS/python-mode" "Python Mode." t)
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(add-to-list 'interpreter-mode-alist '("python" . python-mode))

limit download/upload speed using trickle

trickle -s -u 10 -d 30 btdownloadheadless --minport 9211 --maxport 9214 --random_port 0 "filename"