On Thursday January 20, 2011, Joachim Ott wrote: > On 20 January 2011 17:34, Josh Thompson <[email protected]> wrote: > > On Thursday January 20, 2011, Joachim Ott wrote: > >> On 20 January 2011 14:53, Josh Thompson <[email protected]> wrote: > >> > I use my own script to do screen rotation when I need it. I > >> > discovered this same issue a while ago. I found adding this command > >> > to my script to get run after rotating back to portrait mode fixes > >> > the problem: > >> > > >> > xrandr --dpi 284x280 > >> > > >> > I don't know if there's a way to add that to omnewrotate, but you > >> > could at least put that in a script and create .desktop file for it > >> > to show up as a program in the launcher so you could manually run it. > >> > >> Your script can't be that big. Could you post it, I could use that too. > > > > Well, I was generalizing a bit. I have a script to be able to view some > > webcams on my home LAN that rotates the screen before/after displaying > > them. However, this should work: > > > > ------------ /home/root/togglerotate.sh -------------- > > #!/bin/sh > > pos=`xrandr --verbose | grep LVDS | awk '{print $5}'` > > > > if [[ $pos == 'normal' ]]; then > > xrandr -o 1 > > else > > xrandr -o 0 > > xrandr --dpi 284x280 > > fi > > ------------------------------------------------------ > > This won't work for me as the is no LVDS in the output: > > xrandr --verbose > Screen 0: minimum 240 x 320, current 480 x 640, maximum 480 x 640 > LCD connected 480x640+0+0 (0x40) normal (normal left inverted right) 43mm x > 58mm > > I'll try it with "xrandr --verbose | grep -e LVDS -e LCD ..." later.
Thanks for the feedback. I'm using shr unstable and kernel 2.6.34.7. I guess the difference is due to one of those being different. Incidentally, I can only rotate the screen "left" (the top is on the left side of the display). I cannot rotate it right or inverted as Leonardo mentioned. I'm assuming that's also due to a kernel difference or unstable/testing difference. Josh _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
