Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Touch not working correct
#4
(04-27-2024, 07:06 PM)Tim Curtis Wrote: Look in the file /home/pi/.xinitrc

Below is the command used to determine the screen size. Maybe it's not detecting the correct height?

Code:
# Capture screen size
SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"

Hi Tim

yes, there seem to be the problem because fset does not return the expected values. In my pi4 raspian lite with chromium kiosk mode setup values gives:
Code:
$ fbset -s

mode "400x1280"
   geometry 400 1280 400 1280 16
   timings 0 0 0 0 0 0 0
   accel true
   rgba 5/11,6/5,5/0,0/0
endmode

while in moode it gives:
Code:
$ fbset -s

mode "400x480"
   geometry 400 480 640 1280 16
   timings 0 0 0 0 0 0 0
   accel true
   rgba 5/11,6/5,5/0,0/0
endmode

and therefore to make chromium work in landscape with 1280 x 400 one needs to change .xinitrc as suggested by forum members to

Code:
# Capture screen size
#SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"
SCREENSIZE="1280,400"

view port reports correct 1279 x 399

regards
Felix
Reply


Messages In This Thread
Touch not working correct - by felix1024 - 04-24-2024, 02:45 PM
RE: Touch not working correct - by felix1024 - 04-27-2024, 04:30 PM
RE: Touch not working correct - by Tim Curtis - 04-27-2024, 07:06 PM
RE: Touch not working correct - by felix1024 - 04-28-2024, 09:35 AM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 11:10 AM
RE: Touch not working correct - by felix1024 - 04-28-2024, 12:19 PM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 01:01 PM
RE: Touch not working correct - by popeye65 - 04-28-2024, 12:30 PM
RE: Touch not working correct - by Tim Curtis - 04-28-2024, 01:12 PM
RE: Touch not working correct - by felix1024 - 04-30-2024, 03:08 PM
RE: Touch not working correct - by Tim Curtis - 04-30-2024, 05:50 PM
RE: Touch not working correct - by felix1024 - 05-02-2024, 05:34 PM
RE: Touch not working correct - by Tim Curtis - 05-02-2024, 10:16 PM
RE: Touch not working correct - by fdealexa - 05-03-2024, 12:05 AM

Forum Jump: