raspberry pi touchscreen portrait

261 views
Skip to first unread message

Pkore

unread,
Jun 23, 2016, 5:10:37 PM6/23/16
to Kivy users support
I've been trying to get my app to run in portrait mode and haven't found a good solution for this after googling for days. 
What I've tried: 
  • Adding lcd_rotate=1 to /boot/config.txt - every number other than 2 seems to get ignored while 2 will only flip the display by 180.
  • Adding display_rotate=3 rotates the display by 270 degrees (what i want) but not the touch coordinates, so I used xinput to configure this but kivy doesn't pick up on the changes that xinput made. 
Has anyone had any success in using the official touchscreen in portrait mode on kivy-pie OS? What did you do to make it work?

Pkore

unread,
Jun 27, 2016, 1:14:30 AM6/27/16
to Kivy users support
Bump?
Message has been deleted

Pkore

unread,
Jun 28, 2016, 11:33:53 AM6/28/16
to Kivy users support
Anyone?

Pkore

unread,
Jul 6, 2016, 2:16:35 PM7/6/16
to Kivy users support
Bump.

ZenCODE

unread,
Jul 6, 2016, 3:47:26 PM7/6/16
to Kivy users support
Hi

Okay, it might help if you can tell us:
1. Which version of kivy you are using? Version of Cython?
2. How are you deploying it? Buildozer? Which version? What is your spec file?
3. Which version of Python?
4. It seems it's particularly a portrait issue? So it works in landscape?
5. What is the error it gives? Logs? Messages?

I'm not familiar with this environment, but I think you could help if your post was a bit clearer and more specific...:-) Or maybe it's just me :-(

Cheers

Pkore

unread,
Jul 6, 2016, 5:14:06 PM7/6/16
to Kivy users support
Thank you for your replay! 
I'm using Python 2.7.9 32 bit, Cython 0.21.2 and kivy 1.9.2-dev0 on the latest image of the kivy-pie OS. I'm just trying to run the kivy examples that are included with kivy for raspberry pi. Since I'm running it on the rpi I'm not using buildozer or any .spec file. I tried it in landscape and it works great, but when I switch the orientation in kivy's config.ini file to any portrait orientation the touches are not correct. Does kivy have a separate surface for catching touches that might need rotated as well? 

Pkore

unread,
Jul 6, 2016, 5:30:32 PM7/6/16
to Kivy users support
I also forgot to add that there are no errors because as kivy is concerned nothing is going wrong.

Pkore

unread,
Aug 4, 2016, 11:52:23 AM8/4/16
to Kivy users support
Any chance someone has gotten this working? I'm coming up with nothing. But then again I'm not sure where to look. I'm thinking at this point I might have to go into the kivy code to change the orientation of the touch detection surface. If that's worth checking where can I find the modules for that?

Pkore

unread,
Aug 8, 2016, 6:17:44 PM8/8/16
to Kivy users support
Bump.

Pkore

unread,
Aug 15, 2016, 5:22:03 PM8/15/16
to Kivy users support
I gave the information requested and haven't gotten a response for weeks. Does this mean that nobody knows?

Pkore

unread,
Aug 29, 2016, 11:51:45 AM8/29/16
to Kivy users support
Please?

ZenCODE

unread,
Aug 29, 2016, 7:11:30 PM8/29/16
to Kivy users support
Sorry, I know very little about the pi...:-(

Pkore

unread,
Aug 30, 2016, 12:29:00 PM8/30/16
to Kivy users support
Thanks for your response. It's starting to look like this isn't possible yet with the pi, sigh.... If anybody get's this working please respond to this post. I'll keep looking into it;)

androm

unread,
Aug 31, 2016, 6:58:56 AM8/31/16
to Kivy users support
Hi i don't know much about pi, can't you use xrandr to rotate to screen ?

Kjell Berge

unread,
Sep 1, 2016, 2:40:08 AM9/1/16
to Kivy users support
It work for me, I use: display_rotate=3 in /boot/config.txt
but the touchscreen was wrong way, so I had to change totation = 270 in [graphics] in .kivy/config.ini

Gaurang Patel

unread,
May 12, 2017, 9:35:52 PM5/12/17
to Kivy users support

Hi, I tried the same settings that you mention, but no luck... I read couple of Post related to theses and it seems that no one actually have any idea about this.

ZenCODE

unread,
May 14, 2017, 11:39:53 AM5/14/17
to Kivy users support
@Gaurang Patel

This is an old issue, and it's confusing when old issues are re-opened. If you are having problems, please create a new post mentioning your Kivy version, OS and details of the steps you are following and the erros you encounter. It allows us to help you more efficiently that trying to re-read all the posts here and guess which ones apply to you :-)

Thanks
Reply all
Reply to author
Forward
0 new messages