Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspberrypi 7 inch touch screen auto calibration #823

Closed
mehmetkuckgtu opened this issue Mar 5, 2021 · 1 comment
Closed

raspberrypi 7 inch touch screen auto calibration #823

mehmetkuckgtu opened this issue Mar 5, 2021 · 1 comment

Comments

@mehmetkuckgtu
Copy link

mehmetkuckgtu commented Mar 5, 2021

I want the touch screen to auto-calibrate. I'm doing my image file with core-image-sato (branch: dunfell).

bbfilesler files attached:: meta-qt5 ,meta-raspberrypi, meta-openembedded

MACHINE ??= "raspberrypi3"
rpi-ft5406.dts:
"
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

    fragment@0 {
            target-path = "/soc/firmware";
            __overlay__ {
                    ts: touchscreen {
                            compatible = "raspberrypi,firmware-ts";
                            touchscreen-size-x = <800>;
                            touchscreen-size-y = <480>;
                    };
            };
    };

    __overrides__ {
            touchscreen-size-x = <&ts>,"touchscreen-size-x:0";
            touchscreen-size-y = <&ts>,"touchscreen-size-y:0";
            touchscreen-inverted-x = <&ts>,"touchscreen-inverted-x?";
            touchscreen-inverted-y = <&ts>,"touchscreen-inverted-y?";
            touchscreen-swapped-x-y = <&ts>,"touchscreen-swapped-x-y?";
    };

};
"
Data from xinput_calibration:
"copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)

Section "InputClass"
Identifier "calibration"
MatchProduct "raspberrypi-ts"
Option “CalibrationMatrix” "-0.968536 0.000731 0.984204 -0.009033 0.9033 0.964251 0.020888 0.00000 0.00000 1.00000"
EndSection "
The file "99-calibration.conf" does not exist.

UART Debug:
"
D-BUS per-session daemon address is: unix:abstract=/tmp/dbus-yH0mMaG9G9,guid=ced520525b30507c1e02b8c85aa28981
INFO: width=800, height=480
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

[settings daemon] Forking. run with -n to prevent fork
matchbox-wm: X error warning (0x1200003): BadWindow (invalid Window parameter) (opcode: 12)
dbus-daemon[661]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=0 pid=657 comm="matchbox-panel --start-applets showdesktop,windows")
dbus-daemon[661]: Successfully activated service 'org.a11y.atspi.Registry'
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry**
"

how do i do with yocto.

@mehmetkuckgtu
Copy link
Author

I typed the command into the file. worked automatically
"/root/usr/bin/xinput_calibration_once.sh into "
"xinput set-prop 8 "Coordinate Transformation Matrix" 0 -1 1 -1 0 1 0 0 1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant