olimex a20 - touchscreen misbehaves after turning it 90°

Started by att2, March 18, 2016, 06:59:15 PM

Previous topic - Next topic

att2

Hello,

I have an application which needs a turned by 90° display.
So I edited /usr/share/X11/xorg.conf.d/99-sunxifb.conf :


Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "OffTime" "0"
        Option          "rotate" "CW"
        Option          "SwapbuffersWait" "true"
EndSection

Then I found out the mouse was not turned.
After some googling, I got to know that I have to add another file:
01-input.conf :
root@eSignTouch7:/usr/share/X11/xorg.conf.d# cat 01-input.conf
Section "InputClass"
        Identifier "calibration"
        Option "Calibration" "37 1985 104 1956"
        Option "InvertX" "false"
        Option "InvertY" "false"
EndSection

Now the mouse works, but the touchscreen comes either up with a black screen or he wants me to add username and password. But I want to use the touchscreen just like a mouse, not like a screensaver-starter....

Any help for getting a touchscreen that works just like the mouse?


att2

Oh and I get a kernel oops too:

root@eSignTouch7:/usr/share/X11/xorg.conf.d# sync
root@eSignTouch7:/usr/share/X11/xorg.conf.d# <4>[DISP] layer released: 0,101
[ 1481.225953] [DISP] layer released: 0,101
<1>Unable to handle kernel paging request at virtual address f0cb0000
<1>pgd = ee050000
<1>[f0cb0000] *pgd=6e931811, *pte=00000000, *ppte=00000000
<0>Internal error: Oops: 807 [#1] PREEMPT SMP ARM
<d>Modules linked in: disp_ump cpufreq_powersave cpufreq_conservative cpufreq_stats cpufreq_userspace sunxi_wdt g_ether pwm_sunxi sun4i_keyboard ledtrig_heartbeat leds_sunxi led_class sunxi_gmac sunxi_cedar_mod mali_drm drm mali ump lcd ftdi_sio usbserial
CPU: 0    Not tainted  (3.4.103+ #2)
PC is at bitfill_aligned+0x88/0x124
LR is at bitfill_aligned+0x74/0x124
pc : [<c02ec5a8>]    lr : [<c02ec594>]    psr: 20000013
sp : ee555bb8  ip : 00000000  fp : ffffffff
r10: 00000000  r9 : 00008000  r8 : 00000020
r7 : ff000000  r6 : 00000000  r5 : 00008000  r4 : f0cb0000
r3 : f0cb0000  r2 : 000003f8  r1 : 00000020  r0 : 00000400
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 6e05006a  DAC: 00000015

PC: 0xc02ec528:
c528  e59d5028 e1a06002 e1a07003 e59d802c e3550000 08bd8ff8 e0859002 e3e0a000
c548  e1a01008 e1a0b21a e1a00009 ebff3189 e1590008 e1e0a11a 9a00002f e37b0001
c568  0a000006 e5943000 e0686006 e0855006 e0272003 e002b00b e02b3003 e4843004
c588  e1a00005 e1a01008 ebff30ca e3500007 9a000012 e1a02000 e1a03004 e2422008
c5a8  e5837000 e3520007 e5837004 e5837008 e583700c e5837010 e5837014 e5837018
c5c8  e583701c e2833020 8afffff3 e2403008 e2000007 e1a031a3 e2833001 e0844283
c5e8  e3500000 0a000005 e1a03000 e1a02004 e2533001 e4827004 1afffffc e0844100
c608  e35a0000 15943000 10237007 1007a00a 102a3003 15843000 e8bd8ff8 e5943000

LR: 0xc02ec514:
c514  c02ec7a8 c074f650 c02ec90c e92d4ff8 e1a04001 e59d5028 e1a06002 e1a07003
c534  e59d802c e3550000 08bd8ff8 e0859002 e3e0a000 e1a01008 e1a0b21a e1a00009
c554  ebff3189 e1590008 e1e0a11a 9a00002f e37b0001 0a000006 e5943000 e0686006
c574  e0855006 e0272003 e002b00b e02b3003 e4843004 e1a00005 e1a01008 ebff30ca
c594  e3500007 9a000012 e1a02000 e1a03004 e2422008 e5837000 e3520007 e5837004
c5b4  e5837008 e583700c e5837010 e5837014 e5837018 e583701c e2833020 8afffff3
c5d4  e2403008 e2000007 e1a031a3 e2833001 e0844283 e3500000 0a000005 e1a03000
c5f4  e1a02004 e2533001 e4827004 1afffffc e0844100 e35a0000 15943000 10237007

SP: 0xee555b38:
5b38  00000000 00000000 0000000a c0306df0 00000008 00000000 00000000 0000000a
5b58  00000000 c02ec5a8 20000013 ffffffff ee555ba4 c000e558 00000400 00000020
5b78  000003f8 f0cb0000 f0cb0000 00008000 00000000 ff000000 00000020 00008000
5b98  00000000 ffffffff 00000000 ee555bb8 c02ec594 c02ec5a8 20000013 ffffffff
5bb8  ff000000 fffffda8 f0cb0000 ee93c800 c02ec520 00008000 00000020 ff000000
5bd8  00000000 c02ec3b0 00008000 00000020 00000000 c095c318 ee93c800 ee93ca14
5bf8  00000400 00000000 00000000 ee93c800 000001b0 00000400 00000000 00000008
5c18  ee93c83c ee93c800 00000100 c02e9be8 00000000 00000400 00000400 fffffe58

R3: 0xf0caff80:
ff80  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffa0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffc0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffe0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
0000  ******** ******** ******** ******** ******** ******** ******** ********
0020  ******** ******** ******** ******** ******** ******** ******** ********
0040  ******** ******** ******** ******** ******** ******** ******** ********
0060  ******** ******** ******** ******** ******** ******** ******** ********

R4: 0xf0caff80:
ff80  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffa0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffc0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
ffe0  ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000 ff000000
0000  ******** ******** ******** ******** ******** ******** ******** ********
0020  ******** ******** ******** ******** ******** ******** ******** ********
0040  ******** ******** ******** ******** ******** ******** ******** ********
0060  ******** ******** ******** ******** ******** ******** ******** ********

R7: 0xfeffff80:
ff80  ******** ******** ******** ******** ******** ******** ******** ********
ffa0  ******** ******** ******** ******** ******** ******** ******** ********
ffc0  ******** ******** ******** ******** ******** ******** ******** ********
ffe0  ******** ******** ******** ******** ******** ******** ******** ********
0000  ******** ******** ******** ******** ******** ******** ******** ********
0020  ******** ******** ******** ******** ******** ******** ******** ********
0040  ******** ******** ******** ******** ******** ******** ******** ********
0060  ******** ******** ******** ******** ******** ******** ******** ********
<0>Process Xorg (pid: 2723, stack limit = 0xee5542f0)
<0>Stack: (0xee555bb8 to 0xee556000)
<0>5ba0:                                                       ff000000 fffffda8
<0>5bc0: f0cb0000 ee93c800 c02ec520 00008000 00000020 ff000000 00000000 c02ec3b0
<0>5be0: 00008000 00000020 00000000 c095c318 ee93c800 ee93ca14 00000400 00000000
<0>5c00: 00000000 ee93c800 000001b0 00000400 00000000 00000008 ee93c83c ee93c800
<0>5c20: 00000100 c02e9be8 00000000 00000400 00000400 fffffe58 00000000 00000000
<0>5c40: eeb61400 ee93c800 c095c5e8 ee960400 c095a8ec c02e260c aaaa0000 c02e61e0
<0>5c60: ee555c88 c084e83c 00000000 c0871d00 00000400 00000258 00000400 000004b0
<0>5c80: 00000000 00000000 00000020 00000000 00000010 00000008 00000000 00000008
<0>5ca0: 00000008 00000000 00000000 00000008 00000000 00000018 00000008 00000000
<0>5cc0: 00000000 00000000 00000000 00000000 00000000 000056ce 0000009f 00000010
<0>5ce0: 00000016 00000002 00000001 00000001 00000000 00000000 00000000 00000000
<0>5d00: 00000000 00000000 00000000 00000000 ee960400 eeb61400 00000000 00000000
<0>5d20: 00000001 00000001 00000001 ee93c83c b6f3758c c032ee60 ee93c800 eeb61400
<0>5d40: 00000000 ee960400 00000001 c02e57f4 0ffce000 c083a5c4 c08b61ea 00000400
<0>5d60: 00000258 00000400 000004b0 00000000 00000000 00000020 00000000 00000010
<0>5d80: 00000008 00000000 00000008 00000008 00000000 00000000 00000008 00000000
<0>5da0: 00000018 00000008 00000000 00000000 00000080 00000000 00000000 00000000
<0>5dc0: 000056ce 0000009f 00000010 00000016 00000002 00000001 00000001 00000000
<0>5de0: 00000000 00000000 00000000 00000001 0000000a 00000000 00000000 c0040e14
<0>5e00: c0963ae0 eeb61400 00000001 ee4ff800 eeb61400 00000001 00000006 c032f834
<0>5e20: 00000000 ee554000 00004b3a c03276dc ee555e9c 00000000 00000074 ee555e64
<0>5e40: 00000000 ee2c11b0 00000000 00000000 56f15a89 04118338 ee555e6c 00000000
<0>5e60: 00000000 d071a0a0 ee6e7005 ee4ff800 00000000 00004b3a eea3d3c0 00000000
<0>5e80: ee554000 ee4ff800 b6f3758c c031dd30 00000000 c00f0320 00000001 00000000
<0>5ea0: ee555eb4 c005bacc 00000001 ee554000 ee555ec4 c005bacc 00000000 00000000
<0>5ec0: b6f3758c c0586774 00000000 c011c0f0 00000001 ee554000 ee555eec c005bacc
<0>5ee0: 00000000 ed9b1aa0 ef14e688 00000000 eea3d3c0 00000006 c000eb44 ee554000
<0>5f00: 00000000 c00f61e0 00000001 00000000 ed9b1aa0 ee2c11b0 0000000a c000eb44
<0>5f20: ee554000 00000000 b6f3758c c00f2f4c ed9b1c84 ee619790 eed6ff68 988384d2
<0>5f40: 00000008 ee6e7005 00000000 eec09990 ee9b0688 00000000 00000002 00000000
<0>5f60: 00000000 eea3d3c0 00000000 00004b3a 00000006 c000eb44 ee554000 00000000
<0>5f80: b6f3758c c00f6754 ee27e140 00000000 bef85bc8 b6f35320 00000000 00000000
<0>5fa0: 00000036 c000e9c0 b6f35320 00000000 00000006 00004b3a 00000000 b6f35320
<0>5fc0: b6f35320 00000000 00000000 00000036 00000002 b6f42e8c b6f31000 b6f3758c
<0>5fe0: b6f42a1c bef85bd8 b6e6b80d b6b5c44c 40000010 00000006 00000000 00000000
[<c02ec5a8>] (bitfill_aligned+0x88/0x124) from [<c02ec3b0>] (cfb_fillrect+0x188/0x2f8)
[<c02ec3b0>] (cfb_fillrect+0x188/0x2f8) from [<c02e9be8>] (cw_clear_margins+0x154/0x168)
[<c02e9be8>] (cw_clear_margins+0x154/0x168) from [<c02e260c>] (fbcon_clear_margins+0x6c/0xa0)
[<c02e260c>] (fbcon_clear_margins+0x6c/0xa0) from [<c02e61e0>] (fbcon_switch+0x2cc/0x4cc)
[<c02e61e0>] (fbcon_switch+0x2cc/0x4cc) from [<c032ee60>] (redraw_screen+0x14c/0x21c)
[<c032ee60>] (redraw_screen+0x14c/0x21c) from [<c02e57f4>] (fbcon_blank+0x1c8/0x270)
[<c02e57f4>] (fbcon_blank+0x1c8/0x270) from [<c032f834>] (do_unblank_screen+0x94/0x1b8)
[<c032f834>] (do_unblank_screen+0x94/0x1b8) from [<c03276dc>] (vt_ioctl+0xff8/0x1390)
[<c03276dc>] (vt_ioctl+0xff8/0x1390) from [<c031dd30>] (tty_ioctl+0x160/0xb3c)
[<c031dd30>] (tty_ioctl+0x160/0xb3c) from [<c00f61e0>] (do_vfs_ioctl+0x84/0x5c0)
[<c00f61e0>] (do_vfs_ioctl+0x84/0x5c0) from [<c00f6754>] (sys_ioctl+0x38/0x5c)
[<c00f6754>] (sys_ioctl+0x38/0x5c) from [<c000e9c0>] (ret_fast_syscall+0x0/0x30)
<0>Code: 9a000012 e1a02000 e1a03004 e2422008 (e5837000)
<4>---[ end trace 3e7a00fb3066ffad ]---
UMP<2>: Session closed