Endiaferon project

Kostis P. Ventrix ventrix at gmail.com
Sat Feb 14 20:57:14 EET 2009


2009/2/14 Yannis Tsop <ogiannhs at gmail.com>:
> Here is a list of commands to run in a terminal in order to install all
> needed packages for wiimote and whiteboard in ubuntu 8.10. It creates two
> profiles: multimedia and presentation.
> Multimedia is the default and has volume up/down/mute, next, previous.
> forward,backward, play/pause and
> Presentation is for presentations it supports Slide show (F5), Stop (Esc),
> white (w) and volume. You can enable this by running :
> sudo ln -fs /etc/cwiid/wminput/presentation /etc/cwiid/wminput/default
>
> [code]
> sudo su
> wget -O /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb
> http://linux-whiteboard.googlecode.com/files/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb
> apt-get install wminput wmgui lswm
> apt-get install libgtkmm-2.4-1c2a libglademm-2.4-1c2a libcairomm-1.0-1
> libglibmm-2.4-1c2a libpangomm-1.4-1
> dpkg -i /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb
> rm /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb
> #lswm
> grep uinput /etc/modules || echo uinput >> /etc/modules
> modprobe uinput
> file=/etc/cwiid/wminput/mmedia
> echo "Wiimote.A       = BTN_LEFT" > $file
> echo "Wiimote.B       = BTN_RIGHT" >> $file
> echo "Wiimote.Up      = KEY_PREVIOUSSONG" >> $file
> echo "Wiimote.Down    = KEY_NEXTSONG" >> $file
> echo "Wiimote.Left    = KEY_BACK " >> $file
> echo "Wiimote.Right   = KEY_FORWARD" >> $file
> echo "Wiimote.Minus   = KEY_VOLUMEDOWN" >> $file
> echo "Wiimote.Plus    = KEY_VOLUMEUP" >> $file
> echo "Wiimote.Home    = KEY_MUTE" >> $file
> echo "Wiimote.1       = KEY_PROG1" >> $file
> echo "Wiimote.2       = KEY_PAUSE" >> $file
> echo "Plugin.ir_ptr.X = ABS_X" >> $file
> echo "Plugin.ir_ptr.Y = ABS_Y" >> $file
> file=/etc/cwiid/wminput/presentation
> echo "Wiimote.A       = BTN_LEFT" > $file
> echo "Wiimote.B       = BTN_RIGHT" >> $file
> echo "Wiimote.Up      = KEY_UP" >> $file
> echo "Wiimote.Down    = KEY_DOWN" >> $file
> echo "Wiimote.Left    = KEY_LEFT" >> $file
> echo "Wiimote.Right   = KEY_RIGHT" >> $file
> echo "Wiimote.Minus   = KEY_VOLUMEDOWN" >> $file
> echo "Wiimote.Plus    = KEY_VOLUMEUP" >> $file
> echo "Wiimote.Home    = KEY_ESC" >> $file
> #echo "Wiimote.Home    = KEY_MUTE" >> $file
> echo "Wiimote.1       = KEY_F5" >> $file
> echo "Wiimote.2       = KEY_COMMA" >> $file
> #echo "Wiimote.2       = KEY_DOT" >> $file
> echo "Plugin.ir_ptr.X = ABS_X" >> $file
> echo "Plugin.ir_ptr.Y = ABS_Y" >> $file
> ln -fs /etc/cwiid/wminput/mmedia /etc/cwiid/wminput/default
> echo "case \"\$1\" in" > /etc/init.d/wiimote
> echo "  start)" >> /etc/init.d/wiimote
> echo "        wminput -d &" >> /etc/init.d/wiimote
> echo "        ;;" >> /etc/init.d/wiimote
> echo "  stop)" >> /etc/init.d/wiimote
> echo "    pkill wminput" >> /etc/init.d/wiimote
> echo "    ;;" >> /etc/init.d/wiimote
> echo "esac" >> /etc/init.d/wiimote
> chmod +x /etc/init.d/wiimote
> update-rc.d wiimote defaults 99
> [/code]
>
>
> Is automated and you dont need to do anything but press 1&2 on wiimote to
> start using it. It also enables it after each restart.
>
>
>
>
> Depending on your favorite player you have to change shortcuts in order to
> work with it:
>
> --Amarok
> Amarok -> Settings -> Configure Shortcuts
> Play/Pause -> Click Custom -> Click on Button -> Click on Alternate Shortcut
> Button -> Press Wii Button 2 (It should Add "Pause")
> Seek Backward -> Click Custom -> Click on Button -> Click on Alternate
> Shortcut Button -> Press Wii Left Arrow (It should Add "XF86Back")
> Seek Forward -> Click Custom -> Click on Button -> Click on Alternate
> Shortcut Button -> Press Wii Right Arrow (It should Add "XF86Forward")
>
> --VLC
> --some keys do not work
> VLC -> Tools -> Preferences -> HotKeys
> Next -> Click in Editbox -> Press Wii Down Arrow (It should Add "Media Next
> Track") -> Click Set
> Previous -> Click in Editbox -> Press Wii Up Arrow (It should Add "Media
> Prev Track") -> Click Set
> Click Save
>
> --
> Public mailing list -- http://lists.hellug.gr
> Το παρόν e-mail εκφράζει προσωπικές απόψεις του αποστολέα και όχι του
> συλλόγου. Η Ένωση Χρηστών και Φίλων Linux Ελλάδος δεν φέρει καμία
> ευθύνη για το περιεχόμενό του.
>

Η διαφορά είναι οτι το WiiRemarok δουλεύει και με κινήσεις του χεριού:

Πατώντας το A και
κάνοντας απότομη κίνηση δεξιά: επόμενο τραγούδι
κάνοντας απότομη κίνηση αριστερά: προηγούμενο τραγούδι
γέρνοντας δεξιά: seek +1 sec
γέρνοντας αριστερά: seek -1 sec

Πατώντας το Β και
κάνοντας απότομη κίνηση δεξιά: ένταση 100%
κάνοντας απότομη κίνηση αριστερά: ένταση 10%
γέρνοντας δεξιά: αύξηση έντασης κατα 10%
γέρνοντας αριστερά: μείωση έντασης κατα 10%

Πιο θεαματικό :)
-- 
PLUG mailing list: http://lists.hellug.gr/pipermail/plug/
Debian Blog: http://ventrix24.blogspot.com
Android: http://www.androiddev.gr




More information about the Hellug mailing list