Author Topic: Xfce Rotate  (Read 3460 times)

SiduS

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Xfce Rotate
« on: August 07, 2006, 10:05:45 pm »
Ok I have a 3200 running pdaxrom beta3.

I've installed xfce and the rotation of the desktop is upside down

In landscape its landscape just upside down and same with portrait

Any suggestions?

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Xfce Rotate
« Reply #1 on: August 07, 2006, 10:14:43 pm »
do a xrandr -o 0 or 1 or 2 or 3  until it is right :-)

Late
« Last Edit: August 07, 2006, 10:14:56 pm by InSearchOf »
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Xfce Rotate
« Reply #2 on: August 07, 2006, 10:16:44 pm »
this is part of the xinitrc.xfce4 editing...


do it like this first....

xrandr -o right

that should fix it


Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

SiduS

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Xfce Rotate
« Reply #3 on: August 07, 2006, 10:26:42 pm »
Quote
do a xrandr -o 0 or 1 or 2 or 3  until it is right :-)

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137742\"][{POST_SNAPBACK}][/a][/div]

That works but restarting xfce or clicking on the rotate tool still causes it to go back to being the wrong one.

It seems that it would just be a simple script. And doing a quick look I found a rotate.sh script that calls /etc/sysconfig/clamshell/landscape.d/100x11scr

Am I on the right track?

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Xfce Rotate
« Reply #4 on: August 07, 2006, 10:34:32 pm »
nope....

LOL

easy fix... in you xinitrc.xfce4 file in you /home/root dir...

edit the file and add xrandr -o right

Well just here


Below also fixed the keymaping also the "SL-C1000|SL-3000..... " part.. and below

Code: [Select]
#!/bin/sh
#
# Very simple session manager for matchbox tools
#

echo "0" >/proc/power_key_off 2>/dev/null

test -f /etc/profile && . /etc/profile

# Uncomment below to enable parsing of debian menu entrys
# export MB_USE_DEB_MENUS=1


if [ ! -d $HOME/Choices/common ]; then
    mkdir -p $HOME/Choices/common
fi

if [ -f $HOME/Choices/lightnpower.cfg ]; then
    lightnpower.py --loadandquit
fi

if [ -f /usr/bin/gconfd-2 ]; then
    /usr/bin/gconfd-2 15 &
fi

MODEL=`cat /proc/deviceinfo/product`
echo 'MODEL:'$MODEL
case "$MODEL" in
    SL-C1000|SL-C3000|SL-C3100)
    test -f /etc/X11/kb/akita.xmodmap && xmodmap /etc/X11/kb/akita.xmodmap
;;    
    SL-C860|SL-C760)
    test -f /etc/X11/kb/corgi.xmodmap && xmodmap /etc/X11/kb/corgi.xmodmap
;;
    SL-6000)
    test -f /etc/X11/kb/tosa.xmodmap && xmodmap /etc/X11/kb/tosa.xmodmap
;;
    *)
    cat /proc/cpuinfo | grep 'Sharp-Collie' 2>/dev/null >/dev/null && test -f /etc/X11/kb/collie.xmodmap && xmodmap /etc/X11/kb/collie.xmodmap
;;
esac

test -f /etc/X11/kb/userdefined.xmodmap && xmodmap /etc/X11/kb/userdefined.xmodmap
test -f /usr/bin/chkhinge && /usr/bin/chkhinge 2>/dev/null >/dev/null


/usr/X11R6/bin/xset s 0
xrandr -o right
xfce4-session

GCONF2_PID=`pidof gconfd-2`
if [ ! "$GCONF2_PID" = "" ]; then
    kill $GCONF2_PID
fi

echo "1" >/proc/power_key_off 2>/dev/null

Late
« Last Edit: August 07, 2006, 10:36:20 pm by InSearchOf »
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

SiduS

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Xfce Rotate
« Reply #5 on: August 07, 2006, 10:36:31 pm »
Quote
this is part of the xinitrc.xfce4 editing...


do it like this first....

xrandr -o right

that should fix it


Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137743\"][{POST_SNAPBACK}][/a][/div]


Yeah before I even started xfce I looked at the xinitc.xfce4 and didn't see anything that would need to adjust.

So I guess I can just put the xrandr -o right comand into the xinitrc.xfce4? but I don't think that will help me if I click the rotate option. It will still rotate to the wrong way.

Did I install the wrong packages? It just seems that everytime I try to do something it never works without fixing stuff. Or is it just that the 3200 isn't as supported as the older models?

SiduS

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Xfce Rotate
« Reply #6 on: August 07, 2006, 10:53:24 pm »
Ok that fixed the keymapping and on startup it does start loading the wrong way and then quickly switches over to the xrandr -o right possition which is correct. However. That rotate scrip still rotates wrong. If this is covered in another thread please just let me know and I'll stop bugging .

I'm gonna go read the other threads on xfce and see if I can't figure it out.

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Xfce Rotate
« Reply #7 on: August 07, 2006, 10:57:52 pm »
Quote
That rotate scrip still rotates wrong.

what rotate script?
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

SiduS

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Xfce Rotate
« Reply #8 on: August 07, 2006, 11:09:05 pm »
Quote
Quote
That rotate scrip still rotates wrong.

what rotate script?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137750\"][{POST_SNAPBACK}][/a][/div]


In the xfce menu it has a link to the rotate button you could click when running in the default WM of pdaxrom.

Also I must be missing some ipks. Because I'm getting a few errors on start of xfce.

in xinitrc.xfce4 line 6 and 56 it tries to echo 1 or 2 to /proc/power_key_off but that does not exist. Perhaps this was something pre 3200?

And aparently I'm missing the hicolor theme so it complains about that. and when I'm logged into xfce it looks like X without a WM except for the xfce menu bar at the bottom and the bar across the top that lets you select yoru desktop. I'm assuming this has to do with the missing theme.

However, when trying to adjust things I click on  xfce menu / settings / settings manager and it kills everything. X is still running but theres no xfce menu or the desktop selection bar across the top and any opened apps.

Civil

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • http://
Xfce Rotate
« Reply #9 on: August 08, 2006, 09:41:32 am »
I think it is better to replace in startxfce4 line:
defaultserverargs=" -nolisten tcp -kb"
with
defaultserverargs=" -nolisten tcp -kb -screen 480x640@270"
and forget about xrandr and problems with rotate script...
Zaurus C-3100 ( Gentoo 2007.0 eabi, kernel 2.6.21.6)
http://www.zavrik.info - Russian Zaurus Site.

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Xfce Rotate
« Reply #10 on: August 08, 2006, 11:02:39 pm »
I think you're looking for /usr/bin/rotate.sh
SL6000-L, RC12

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Xfce Rotate
« Reply #11 on: August 08, 2006, 11:23:10 pm »
Quote
In the xfce menu it has a link to the rotate button you could click when running in the default WM of pdaxrom.

what i did is i create to launchers landscape and portrait... and i just launch when i rotate the screen... which i rarely do... im not to worried about the on the fly hoop-lah...

Quote
Also I must be missing some ipks. Because I'm getting a few errors on start of xfce.

in xinitrc.xfce4 line 6 and 56 it tries to echo 1 or 2 to /proc/power_key_off but that does not exist. Perhaps this was something pre 3200?

i get the same error.. i just ignore it... if i wasnt so lazy i would comment out the line xinitrc.xfce4 and see if i notice a diff...

Quote
And aparently I'm missing the hicolor theme so it complains about that. and when I'm logged into xfce it looks like X without a WM except for the xfce menu bar at the bottom and the bar across the top that lets you select yoru desktop. I'm assuming this has to do with the missing theme.

ok hi color is the icon set that comes with xfce... now like i said in either earlier post... or im the pm's... i dont use the newer ipkgs because of these issues... i ran into the same problems with the taskbar dumping... when it dumps next time... do a ctrl alt (button to the right of ctrl) del(<BS)

what is the lastest error...

next on the issue... ROX... xfce desktop is nothing... no pin board for icons... nothing... this is when rox comes in to play... it will be the pin board for you... you will find instructions for installing rox in th xfce fine tuning thread i believe... if you run into any problem post or pm me...

Quote
However, when trying to adjust things I click on  xfce menu / settings / settings manager and it kills everything. X is still running but theres no xfce menu or the desktop selection bar across the top and any opened apps.

the above explains this issue... also if you want the older packages.. let me know... i have a working set to meet all depends... so placing all files in 1 dir and running ipkg install *.ipk gets you everything you need....

ok im going to bed now... maybe...

replying this much on the Z give me thumb pains...

Late... as always...
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode