Hardware Reference
In-Depth Information
mouse) over to to the System menu (it is the farthest item to the right), then to the
System info tab. It will print out a page of system information details, including a field
labeled “IP address.”
From your Linux laptop, SSH into that IP address as the pi user. We'll assume the IP
address is 192.168.5.128 in these examples, but you should of course replace it with
your actual IP address:
$ ssh pi@192.168.5.128
The default password is raspberry . Once you successfully SSH in, RaspBMC will
prompt you to set your locale and keyboard settings. For Americans, it's en_US.UTF-8
UTF-8 . If you don't know your locale setting, you can enable “All locales” at the top, but
it will eat up space on the SD card.
After this finishes, you can set the timezone, and finally, it will drop you to a shell
prompt, where you can get down to the business of calibrating the touchscreen. First,
go ahead and stop XBMC:
$ sudo stop xbmc
Download and install the touchscreen library and calibration script:
$ wget --no-check -O tslib_1-1_armhf.deb "https://docs.google.com/uc?
export=download&id=0B4lrG9aRe-8MUlRaRW5LcXNDaDA"
$ sudo dpkg -i tslib_1-1_armhf.deb
$ wget --no-check -O ts_calib.sh "https://docs.google.com/uc?
export=download&id=0B4lrG9aRe-8MOV94Nl90SExsVE0"
$ chmod +x ts_calib.sh
You'll need to configure the ts_calib.sh calibration script before it will work properly.
Specifically, you need to know the device name for the touchscreen's event device.
The easiest way to determine this is to run ls -l /dev/input/by-id :
$ ls -l /dev/input/by-id
total 0
lrwxrwxrwx 1 root root 9 Sep 12 21:19 usb-Logitech_USB_Keyboard-event-if01 -
> ../event3
lrwxrwxrwx 1 root root 9 Sep 12 21:19 usb-Logitech_USB_Keyboard-event-kbd -
> ../event2
lrwxrwxrwx 1 root root 9 Sep 12 22:23 usb-Logitech_USB_Optical_Mouse-event-
mouse -> ../event4
lrwxrwxrwx 1 root root 9 Sep 12 22:23 usb-Logitech_USB_Optical_Mouse-mouse -
> ../mouse2
lrwxrwxrwx 1 root root 9 Sep 12 21:19 usb-eGalax_Inc._Touch-event-mouse -
> ../event1
lrwxrwxrwx 1 root root 6 Sep 12 21:19 usb-eGalax_Inc._Touch-mouse -> ../js0
Search WWH ::




Custom Search