DietPi-Set_Hardware | WaveShare32: Input axis inverted

Created on 11 Mar 2017  ·  7Comments  ·  Source: MichaIng/DietPi

Most helpful comment

Re-install test:

  • 🈯️

All 7 comments

@Fourdee
To clean up old issues, do you have a chance to retest this, also if just an issue on Jessie, or on Stretch as well?

  • Xorg broken under Stretch due to fbturbo no longer being available. fbdev fixes that.
  • No matter what is placed under this, it has no effect:
cat << _EOF_ > /etc/X11/xorg.conf.d/99-waveshare32_calibration.conf
Section "InputClass"
    Identifier      "calibration"
    Driver "libinput"
    MatchProduct    "ADS7846 Touchscreen"
     Option  "MinX"   "22869"
     Option  "MinY"   "40937"
     Option  "MaxX"   "24234"
     Option  "MaxY"   "44395"
    Option  "SwapXY" "1"
    Option  "InvertX" "0"
    Option  "InvertY" "0"
EndSection
_EOF_

The above is what the calibrator told me to use

[   212.780] (II) failed to create input device '/dev/input/mouse1'.
[   212.780] (EE) libinput: ADS7846 Touchscreen: Failed to create a device for /dev/input/mouse1
[   212.780] (EE) PreInit returned 2 for "ADS7846 Touchscreen"
[   212.780] (II) UnloadModule: "libinput"
root@DietPi:~# cat /var/log/Xorg.0.log
[   212.429]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[   212.430] X Protocol Version 11, Revision 0
[   212.431] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[   212.432] Current Operating System: Linux DietPi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l
[   212.432] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=720 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=27504eef-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
[   212.436] Build Date: 18 October 2017  04:55:30PM
[   212.436] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
[   212.437] Current version of pixman: 0.34.0
[   212.438]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   212.438] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   212.442] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 20 15:22:40 2018
[   212.443] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   212.444] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   212.445] (==) ServerLayout "ServerLayout0"
[   212.445] (==) No screen section available. Using defaults.
[   212.445] (**) |-->Screen "Default Screen Section" (0)
[   212.445] (**) |   |-->Monitor "<default monitor>"
[   212.445] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[   212.445] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[   212.445] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   212.445] (**) Option "BlankTime" "0"
[   212.445] (**) Option "StandbyTime" "0"
[   212.445] (**) Option "SuspendTime" "0"
[   212.445] (**) Option "OffTime" "0"
[   212.445] (==) Automatically adding devices
[   212.445] (==) Automatically enabling devices
[   212.445] (==) Automatically adding GPU devices
[   212.445] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   212.445] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   212.445]    Entry deleted from font path.
[   212.445] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   212.445]    Entry deleted from font path.
[   212.445] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   212.445]    Entry deleted from font path.
[   212.445] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[   212.445]    Entry deleted from font path.
[   212.445] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   212.445]    Entry deleted from font path.
[   212.446] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   212.446]    Entry deleted from font path.
[   212.446] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        built-ins
[   212.446] (==) ModulePath set to "/usr/lib/xorg/modules"
[   212.446] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   212.446] (II) Loader magic: 0x1fbf40
[   212.446] (II) Module ABI versions:
[   212.446]    X.Org ANSI C Emulation: 0.4
[   212.446]    X.Org Video Driver: 23.0
[   212.446]    X.Org XInput driver : 24.1
[   212.446]    X.Org Server Extension : 10.0
[   212.447] (++) using VT number 1

[   212.451] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   212.451] (II) no primary bus or device found
[   212.451] (II) LoadModule: "glx"
[   212.452] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   212.455] (II) Module glx: vendor="X.Org Foundation"
[   212.456]    compiled for 1.19.2, module version = 1.0.0
[   212.456]    ABI class: X.Org Server Extension, version 10.0
[   212.456] (II) LoadModule: "fbdev"
[   212.456] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   212.456] (II) Module fbdev: vendor="X.Org Foundation"
[   212.456]    compiled for 1.19.0, module version = 0.4.4
[   212.456]    Module class: X.Org Video Driver
[   212.456]    ABI class: X.Org Video Driver, version 23.0
[   212.456] (II) FBDEV: driver for framebuffer: fbdev
[   212.456] (WW) Falling back to old probe method for fbdev
[   212.456] (II) Loading sub module "fbdevhw"
[   212.456] (II) LoadModule: "fbdevhw"
[   212.457] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   212.457] (II) Module fbdevhw: vendor="X.Org Foundation"
[   212.457]    compiled for 1.19.2, module version = 0.0.2
[   212.457]    ABI class: X.Org Video Driver, version 23.0
[   212.457] (II) FBDEV(0): using /dev/fb1
[   212.457] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   212.457] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 16/16
[   212.457] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
[   212.457] (==) FBDEV(0): RGB weight 565
[   212.457] (==) FBDEV(0): Default visual is TrueColor
[   212.457] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[   212.457] (II) FBDEV(0): hardware: fb_ili9340 (video memory: 150kB)
[   212.457] (**) FBDEV(0): Option "fbdev" "/dev/fb1"
[   212.457] (II) FBDEV(0): checking modes against framebuffer device...
[   212.457] (II) FBDEV(0): checking modes against monitor...
[   212.457] (--) FBDEV(0): Virtual size is 320x240 (pitch 320)
[   212.457] (**) FBDEV(0):  Built-in mode "current"
[   212.457] (==) FBDEV(0): DPI set to (96, 96)
[   212.457] (II) Loading sub module "fb"
[   212.457] (II) LoadModule: "fb"
[   212.458] (II) Loading /usr/lib/xorg/modules/libfb.so
[   212.458] (II) Module fb: vendor="X.Org Foundation"
[   212.458]    compiled for 1.19.2, module version = 1.0.0
[   212.458]    ABI class: X.Org ANSI C Emulation, version 0.4
[   212.458] (**) FBDEV(0): using shadow framebuffer
[   212.458] (II) Loading sub module "shadow"
[   212.458] (II) LoadModule: "shadow"
[   212.458] (II) Loading /usr/lib/xorg/modules/libshadow.so
[   212.458] (II) Module shadow: vendor="X.Org Foundation"
[   212.458]    compiled for 1.19.2, module version = 1.1.0
[   212.458]    ABI class: X.Org ANSI C Emulation, version 0.4
[   212.458] (II) FBDEV(0): FBIOBLANK: Invalid argument (Screen blanking not supported by kernel - disabling)
[   212.459] (==) FBDEV(0): Backing store enabled
[   212.459] (==) FBDEV(0): DPMS enabled
[   212.459] (==) RandR enabled
[   212.478] (II) SELinux: Disabled on system
[   212.481] (II) AIGLX: Screen 0 is not DRI2 capable
[   212.481] (EE) AIGLX: reverting to software rendering
[   212.569] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[   212.571] (II) IGLX: Loaded and initialized swrast
[   212.571] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   212.685] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event2)
[   212.685] (**) ADS7846 Touchscreen: Applying InputClass "libinput touchscreen catchall"
[   212.685] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   212.685] (II) LoadModule: "libinput"
[   212.686] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   212.690] (II) Module libinput: vendor="X.Org Foundation"
[   212.691]    compiled for 1.19.0, module version = 0.23.0
[   212.691]    Module class: X.Org XInput Driver
[   212.691]    ABI class: X.Org XInput driver, version 24.1
[   212.691] (II) Using input driver 'libinput' for 'ADS7846 Touchscreen'
[   212.692] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 18 paused 0
[   212.692] (**) ADS7846 Touchscreen: always reports core events
[   212.692] (**) Option "Device" "/dev/input/event2"
[   212.692] (**) Option "_source" "server/udev"
[   212.694] (II) input device 'ADS7846 Touchscreen', /dev/input/event2 is tagged by udev as: Touchscreen
[   212.694] (II) input device 'ADS7846 Touchscreen', /dev/input/event2 is a touch device
[   212.694] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input2/event2"
[   212.694] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[   212.695] (**) Option "AccelerationScheme" "none"
[   212.695] (**) ADS7846 Touchscreen: (accel) selected scheme none/0
[   212.695] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[   212.695] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[   212.696] (II) input device 'ADS7846 Touchscreen', /dev/input/event2 is tagged by udev as: Touchscreen
[   212.696] (II) input device 'ADS7846 Touchscreen', /dev/input/event2 is a touch device
[   212.697] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse1)
[   212.697] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   212.697] (II) Using input driver 'libinput' for 'ADS7846 Touchscreen'
[   212.697] (**) ADS7846 Touchscreen: always reports core events
[   212.697] (**) Option "Device" "/dev/input/mouse1"
[   212.697] (**) Option "_source" "server/udev"
[   212.780] (II) failed to create input device '/dev/input/mouse1'.
[   212.780] (EE) libinput: ADS7846 Touchscreen: Failed to create a device for /dev/input/mouse1
[   212.780] (EE) PreInit returned 2 for "ADS7846 Touchscreen"
[   212.780] (II) UnloadModule: "libinput"
[   212.782] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/event0)
[   212.782] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[   212.782] (II) Using input driver 'libinput' for '  Mini Keyboard'
[   212.783] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 21 paused 0
[   212.783] (**)   Mini Keyboard: always reports core events
[   212.783] (**) Option "Device" "/dev/input/event0"
[   212.783] (**) Option "_source" "server/udev"
[   212.785] (II) input device '  Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   212.785] (II) input device '  Mini Keyboard', /dev/input/event0 is a keyboard
[   212.785] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:1997:2433.0001/input/input0/event0"
[   212.785] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: KEYBOARD, id 7)
[   212.785] (**) Option "xkb_model" "pc105"
[   212.785] (**) Option "xkb_layout" "gb"
[   212.846] (II) input device '  Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[   212.846] (II) input device '  Mini Keyboard', /dev/input/event0 is a keyboard
[   212.848] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/event1)
[   212.848] (**)   Mini Keyboard: Applying InputClass "libinput pointer catchall"
[   212.848] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[   212.848] (II) Using input driver 'libinput' for '  Mini Keyboard'
[   212.850] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 22 paused 0
[   212.850] (**)   Mini Keyboard: always reports core events
[   212.850] (**) Option "Device" "/dev/input/event1"
[   212.850] (**) Option "_source" "server/udev"
[   212.852] (II) input device '  Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse
[   212.852] (II) input device '  Mini Keyboard', /dev/input/event1 is a pointer caps
[   212.852] (II) input device '  Mini Keyboard', /dev/input/event1 is a keyboard
[   212.852] (II) libinput:   Mini Keyboard: needs a virtual subdevice
[   212.852] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input1/event1"
[   212.852] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: MOUSE, id 8)
[   212.853] (**) Option "AccelerationScheme" "none"
[   212.853] (**)   Mini Keyboard: (accel) selected scheme none/0
[   212.853] (**)   Mini Keyboard: (accel) acceleration factor: 2.000
[   212.853] (**)   Mini Keyboard: (accel) acceleration threshold: 4
[   212.854] (II) input device '  Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse
[   212.854] (II) input device '  Mini Keyboard', /dev/input/event1 is a pointer caps
[   212.854] (II) input device '  Mini Keyboard', /dev/input/event1 is a keyboard
[   212.857] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/mouse0)
[   212.857] (II) No input driver specified, ignoring this device.
[   212.857] (II) This device may have been added with another device file.
[   212.867] (**)   Mini Keyboard: Applying InputClass "libinput pointer catchall"
[   212.867] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[   212.867] (II) Using input driver 'libinput' for '  Mini Keyboard'
[   212.867] (II) systemd-logind: returning pre-existing fd for /dev/input/event1 13:65
[   212.867] (**)   Mini Keyboard: always reports core events
[   212.867] (**) Option "Device" "/dev/input/event1"
[   212.867] (**) Option "_source" "_driver/libinput"
[   212.867] (II) libinput:   Mini Keyboard: is a virtual subdevice
[   212.867] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input1/event1"
[   212.867] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: KEYBOARD, id 9)
[   212.867] (**) Option "xkb_model" "pc105"
[   212.867] (**) Option "xkb_layout" "gb"

Using evdev method:
https://github.com/notro/fbtft/issues/445#issuecomment-354714529

root@DietPi:~# cat /var/log/Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   637.368] (EE) AIGLX: reverting to software rendering
[   637.580] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[   637.583] (EE) evdev: ADS7846 Touchscreen: Unable to query fd: Inappropriate ioctl for device
[   637.690] (EE) PreInit returned 2 for "ADS7846 Touchscreen"

Resolved with setting evdev and using 270 rotation in config.txt.

However, still gives us an error, but it works 🤣

root@DietPi:~# cat /var/log/Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    15.193] (EE) AIGLX: reverting to software rendering
[    16.546] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[    16.548] (EE) evdev: ADS7846 Touchscreen: Unable to query fd: Inappropriate ioctl for device
[    16.620] (EE) PreInit returned 2 for "ADS7846 Touchscreen"

Re-install test:

  • 🈯️

@Fourdee
This is not related to: https://github.com/Fourdee/DietPi/issues/2130 right?

@MichaIng

This is not related to: #2130 right?

Nope, XU4 is a DRM issue with driver.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k-plan picture k-plan  ·  3Comments

Invictaz picture Invictaz  ·  3Comments

Invictaz picture Invictaz  ·  3Comments

and09 picture and09  ·  3Comments

Kapot picture Kapot  ·  3Comments