 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
trantako
Joined: 20 Mar 2007 Posts: 3
Digg It |
Posted: Tue Mar 20, 2007 8:52 pm Post subject: IR control problem |
|
|
I'm experiencing a problem with cwiid and IR control.
First some info: I'm using (K)ubuntu Edgy and compiled cwiid from source, since debian packages had some issues with dependencies. Everything seems to work just fine with wmgui, including IR.
When using wminput, I can use tilting for mouse control with default/acc plugin. However, when I activate IR plugin (sudo wminput -c ir_ptr) and use a couple of candles as IR sources, I can see the first LED burning when I point the wiimote towards the candles, but the cursor does not move. Buttons work just fine.
I modified the source a bit to print the mouse coordinates to console and they seem to be just fine. I also tried to change configuration params in ir_ptr config file. If I use REL_X instead of ~ABS_X, cursor goes to right edge of the screen and stays there.
No more ideas left... What could be the reason that with ~ABS_X, ~ABS_Y values mouse emulation doesn't work? Anyone? |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Tue Mar 20, 2007 9:53 pm Post subject: |
|
|
what does your xorg.conf look like? _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
trantako
Joined: 20 Mar 2007 Posts: 3
Digg It |
Posted: Wed Mar 21, 2007 4:50 pm Post subject: |
|
|
Here it is. I have added wiimote as an input device based on information that I found from one French site (I can't read French but understood the commands). There's some mess with displays since I had to play a little to get dual screen working properly with Beryl.
| Code: |
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Fri Dec 15 10:12:14 PST 2006
# /etc/X11/xorg.conf (xorg 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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 "ServerLayout"
Identifier "Twinview"
Screen 0 "Right Screen" 0 0
Screen 1 "Left Screen" LeftOf "Right Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Wiimote" "AlwaysCore"
EndSection
Section "Files"
# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "int10"
Load "type1"
Load "vbe"
Load "glx"
Load "v4l"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fi"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Wiimote"
Driver "evdev"
Option "Name" "Nintendo Wiimote"
EndSection
Section "Monitor"
Identifier "Viewsonic 171b Left"
VendorName "Viewsonic"
ModelName "171b"
HorizSync 31.5 - 90.0
VertRefresh 60.0
Gamma 1
# ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
# ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
# ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
# Modeline "1280x1024@60" 114.98 1280 1312 1744 1776 1024 1045 1055 1076 +hsync +vsync
EndSection
Section "Monitor"
Identifier "Viewsonic 171b Right"
VendorName "Viewsonic"
ModelName "171b"
HorizSync 31.5 - 90.0
VertRefresh 60.0
Gamma 1
# ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
# ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
# ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
# Modeline "1280x1024@60" 114.98 1280 1312 1744 1776 1024 1045 1055 1076 +hsync +vsync
EndSection
Section "Device"
Identifier "NVIDIA GEFORCE 7600 GS Digital"
Driver "nvidia"
VendorName "NVIDIA"
BoardName "GEFORCE 7600 GS"
BusID "PCI:1:0:0"
Option "NoLogo"
Option "RandRRotation" "on"
# Option "ConnectedMonitor" "DFP-0,CRT-1"
Option "TwinView" "yes"
# Option "MetaModes" "1280x1024,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600"
# Option "TwinViewOrientation" "DFP-0 RightOf CRT-1"
# Option "SecondMonitorHorizSync" "31.5-90.0"
# Option "SecondMonitorVertRefresh" "60-75"
Screen 0
EndSection
Section "Device"
Identifier "NVIDIA GEFORCE 7600 GS Analog"
Driver "nvidia"
VendorName "NVIDIA"
BoardName "GEFORCE 7600 GS"
BusID "PCI:1:0:0"
Option "NoLogo"
Option "RandRRotation" "on"
# Option "ConnectedMonitor" "DFP-0,CRT-1"
Option "TwinView" "yes"
# Option "MetaModes" "1280x1024,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600;"
# Option "TwinViewOrientation" "DFP-0 RightOf CRT-1"
# Option "SecondMonitorHorizSync" "31.5-90.0"
# Option "SecondMonitorVertRefresh" "60-75"
Screen 1
EndSection
Section "Screen"
Identifier "Right Screen"
Device "NVIDIA GEFORCE 7600 GS Digital"
Monitor "Viewsonic 171b Right"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 24
Modes "1280x1024@60" "1024x768@60" "800x600@60" "640x480@60"
EndSubSection
EndSection
Section "Screen"
Identifier "Left Screen"
Device "NVIDIA GEFORCE 7600 GS Analog"
Monitor "Viewsonic 171b Left"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 24
Modes "1280x1024@60" "1024x768@60" "800x600@60" "640x480@60"
EndSubSection
EndSection
|
|
|
| Back to top |
|
 |
trantako
Joined: 20 Mar 2007 Posts: 3
Digg It |
Posted: Wed Mar 21, 2007 5:27 pm Post subject: |
|
|
abstrakraft, thanks for making a good question... I managed to get IR control to work by editing my xorg.conf. I commented out Screen1 from ServerLayout and TwinView from Screen0, which disabled the second monitor but enabled mouse emulation with IR.
So it seams that in single monitor use IR control works but I don't know what is the problem with two monitors. Maybe it has something to do with TwinView style dual monitor system.
I'm actually planning to use cwiid with another computer that has only one monitor, so this not a major issue for me. Currently I'm developing some software that uses cwiid with a computer that has dual monitor system, so a workaround would be nice, though. |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Thu Mar 22, 2007 4:02 pm Post subject: |
|
|
Glad you got it working, sort of. I've dealt with the various dual-head methods before, hopefully it will come back to me - I'll take a look at it when I have a chance. Submitting a ticket at http://abstrakraft.org/cwiid will guarantee I don't forget about it .
Snark, I seem to remember you saying something about dual-headed at some point. Do you have any pertinent experience to share? _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|