Re: [debian] doom accel/touch not working right?

2009-06-28 Thread SCarlson


 Hello Everyone --

I've been meaning to make some improvements. I would be happy to make some
corrections.

I should have my Freerunner back from the buzz fix soon, I have not been
using my neo lately.

What should be the first target platform?

Can someone give me the kernel/root images that I should test against?

Thanks,
Scott
-- 
View this message in context: 
http://n2.nabble.com/-debian--doom-accel-touch-not-working-right--tp2936256p3169990.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian] doom accel/touch not working right?

2009-05-29 Thread Paul Fertser
Fox Mulder quakem...@gmx.net writes:
 No one knows how to fix the bug that the input isn't working right anymore?
 
 When i do a hexdump /dev/input/event2 or with event3 i got data so the
 accels seems to work. A short look at the modifications Scott made to
 the sourcecode shows that he uses these input devices. But ingame the
 accels has no effect at all.

Have you verified it (doom) uses ABS input events as was mentioned
many times and required by any kernel older than 3 months?

 I use these two commands to change the display resolution and orientation:
 echo qvga-normal  /sys/bus/spi/devices/spi2.0/state
 xrandr -s 240x320 -o 1

 Is there anything which i can do so that the touchscreen input also is
 scaled to 320x240 in landscape mode?

Looks like you're using Xglamo. TS input is known to work properly in
QVGA with Xorg driver.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian] doom accel/touch not working right?

2009-05-28 Thread Fox Mulder
Fox Mulder wrote:
 Hi,
 
 today i tried again opendoom for freerunner from Scott Carlson and it
 worked much more than it does a few months earlier. Maybe because i use
 xserver-xglamo and not fbdev at the moment.
 First i had to modify the /usr/games/dm startscript to [1] and it worked
 in landscape mode with a resolution of 240x320. But my first problem was
 that the touchscreen buttons seems not to work as expected. Only the
 menu button in the upper right always work. The up/down/enter
 buttons within the menu only seem to work sometimes. When i touch
 everywhere around sometimes one of these buttons seems to be touched.
 
 After a wild touching session i got a new game started but the
 accelerometer inputs seems to be broken within doom. I can now touch the
 menu und fire button which worked but no matter how i rotate my neo the
 player never even moves a bit.
 
 I'm using a recent 2.6.29 kernel from andy-tracking and the
 accelerometers work in mokomaze or acceleroids, so they seem to be ok.
 
 I hope Scott you could modify your opendoom version so it works again
 with accels? :)
 
 Or maybe someone else know what to change in the sourcecode to get it going.

No one knows how to fix the bug that the input isn't working right anymore?

When i do a hexdump /dev/input/event2 or with event3 i got data so the
accels seems to work. A short look at the modifications Scott made to
the sourcecode shows that he uses these input devices. But ingame the
accels has no effect at all.
I also took a short look at the touchscreen modifications in the
sourcecode but i'm no C(++) programmer so i can't say what could be wrong.

Ciao,
 Rainer

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian] doom accel/touch not working right?

2009-05-28 Thread Fox Mulder
 No one knows how to fix the bug that the input isn't working right anymore?
 
 When i do a hexdump /dev/input/event2 or with event3 i got data so the
 accels seems to work. A short look at the modifications Scott made to
 the sourcecode shows that he uses these input devices. But ingame the
 accels has no effect at all.
 I also took a short look at the touchscreen modifications in the
 sourcecode but i'm no C(++) programmer so i can't say what could be wrong.

Ok, i think i know why the touchscreen input isn't working right. I used
a startscript which changes the screen resolution and orientation before
and after i start doom. But now i tried to do it in single steps and i
found a behaviour which is not right.
When i change the screen to 320x240 landscape mode the touchscreen input
seems to be still on 640x480. Because on the desktop i can see that the
mouse is moving only for 1/4 of the touchscreen area within the visible
screen resolution.

I use these two commands to change the display resolution and orientation:
echo qvga-normal  /sys/bus/spi/devices/spi2.0/state
xrandr -s 240x320 -o 1

Is there anything which i can do so that the touchscreen input also is
scaled to 320x240 in landscape mode?

Ciao,
 Rainer

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[debian] doom accel/touch not working right?

2009-05-18 Thread Fox Mulder
Hi,

today i tried again opendoom for freerunner from Scott Carlson and it
worked much more than it does a few months earlier. Maybe because i use
xserver-xglamo and not fbdev at the moment.
First i had to modify the /usr/games/dm startscript to [1] and it worked
in landscape mode with a resolution of 240x320. But my first problem was
that the touchscreen buttons seems not to work as expected. Only the
menu button in the upper right always work. The up/down/enter
buttons within the menu only seem to work sometimes. When i touch
everywhere around sometimes one of these buttons seems to be touched.

After a wild touching session i got a new game started but the
accelerometer inputs seems to be broken within doom. I can now touch the
menu und fire button which worked but no matter how i rotate my neo the
player never even moves a bit.

I'm using a recent 2.6.29 kernel from andy-tracking and the
accelerometers work in mokomaze or acceleroids, so they seem to be ok.

I hope Scott you could modify your opendoom version so it works again
with accels? :)

Or maybe someone else know what to change in the sourcecode to get it going.

Ciao,
 Rainer



[1]
# Don't turn LCD off
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
org.freesmartphone.Usage.SetResourcePolicy 'Display' 'enabled'

# LCD - QVGA landscape
echo qvga-normal  /sys/bus/spi/devices/spi2.0/state
xrandr -s 240x320 -o 1

# start Doom
/usr/games/opendoom -config ~/.opendoom/opendoom.cfg

# LCD - VGA normal
echo normal  /sys/bus/spi/devices/spi2.0/state
xrandr -s 480x640 -o 0

# Dim LCD automatically
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
org.freesmartphone.Usage.SetResourcePolicy 'Display' 'auto'

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community