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

Running kodi screen display direction is incorrect #13

Open
xue-fei opened this issue Nov 28, 2023 · 9 comments
Open

Running kodi screen display direction is incorrect #13

xue-fei opened this issue Nov 28, 2023 · 9 comments

Comments

@xue-fei
Copy link

xue-fei commented Nov 28, 2023

CM4 version, running Kodi, screen display direction incorrect, How to adjust it?
System is uConsole_CM4_v1.3g_64bit.img.7z
IMG_20231128_200038

@57Bravo
Copy link

57Bravo commented Nov 28, 2023

xrandr -o right

@xue-fei
Copy link
Author

xue-fei commented Dec 2, 2023

xrandr -o right

Have you tested it? I tried but it didn't work

@57Bravo
Copy link

57Bravo commented Dec 2, 2023

Yes, I tested this. I didn't want to use the stock sdcard image from CPI, so I installed vanilla RPI OS. After I patched everything, it came up with the same orientation as yours. Running xrandr fixed mine.

I guess the difference is, I'm not running Kodi. I would think xrandr would work on either though. Does it show an error after you run it?

@andrwj
Copy link

andrwj commented Dec 2, 2023

xrandr -o right does work for most cases but it does not work for Kodi either on CPI image or vanilla RPi image.
I posted in the forums about this a long time ago, but no one had a good answer.
My most recent conclusion is that the Kodi source for version 19 or so has a poor implementation of screen rotation.
I've been meaning to try compiling version 20 Kodi at the smallest level, but it's a lot of work, so I've put it off until now.
I hope someone can point me to a solution.

@57Bravo
Copy link

57Bravo commented Dec 2, 2023

That's a bummer. Yeah, my image is just vanilla RPI with the CPI kernel/cfg patches. I guess you could look at any Kodi specific kernel patches and find mods made to /boot/config.txt made for their distro.

@57Bravo
Copy link

57Bravo commented Dec 2, 2023

Maybe this "display_rotate=2 in `/boot/config.txt"

Some folks reporting needing to use 4 instead of 2

https://raspberrypi.stackexchange.com/questions/136497/how-do-i-rotate-the-screen-at-boot-time-gui-is-rotated-but-boot-messages-are-st

@andrwj
Copy link

andrwj commented Dec 3, 2023

@57Bravo Thanks for your replies. But display_rotate=2 also does not work.
Kodi seems to access the display device directly without using any kernel services or Windows services.

@xue-fei
Copy link
Author

xue-fei commented Dec 4, 2023

Yes, I tested this. I didn't want to use the stock sdcard image from CPI, so I installed vanilla RPI OS. After I patched everything, it came up with the same orientation as yours. Running xrandr fixed mine.

I guess the difference is, I'm not running Kodi. I would think xrandr would work on either though. Does it show an error after you run it?
How to installed vanilla RPI OS? Just download and install it? Do I need to regenerate the system?

@57Bravo
Copy link

57Bravo commented Dec 4, 2023

If you install vanilla RPI OS, the display won't work. CPI released a patch script to rebuild the kernel with various settings and code changes to support the device.

Here's their patch: https://github.com/clockworkpi/uConsole/tree/master/Code/patch/cm4/20230630

Just use RPI imager to make the sdcard, then install the patched kernel with tweaked /boot/config.txt

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

3 participants