Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Wrong screen orientation at login screen and after login

  1. #1
    Join Date
    Aug 2013
    Beans
    22

    Wrong screen orientation at login screen and after login

    After upgrading to 13.10 the screen rotation with the acelerometer finally started to work on my Wetab. The only problem is that the screen orientation on the login screen and after the login is wrong. The screen is turned to right but the touchscreen isn't. I have to turn my Wetab to the right and back to normal again to get the correct screen orientation and a working touchscreen. After logging in the screen turns to the right again and I have to repeat these steps.

    Is there any way to force the correct screen orientation?

    Edit: Problem solved, workaround is described on my blog: http://lackofalucidmind-en.blogspot....eeter-and.html
    Last edited by daniel-holz91; June 16th, 2014 at 04:32 PM. Reason: added workaround

  2. #2
    Join Date
    Jan 2009
    Location
    Belgium (Ghent)
    Beans
    481
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Wrong screen orientation at login screen and after login

    Look for the settings via SystemSettings>(under Hardware) 'Monitors' or 'Screens' (or something like that, I don't now in English, have a Dutch version).
    Dutch speaking; understand English, writing is a bit difficult. Member of: http://forum.ubuntu-nl.org
    be Open be Free be Ubuntu Reg. User #485479
    Ubuntu 13.10 Saucy Salamander - Ubuntu 14.04 Trusty Tahr

  3. #3
    Join Date
    Aug 2013
    Beans
    22

    Re: Wrong screen orientation at login screen and after login

    I already tried that without success.
    When I do my workaround to get the screen working the orientation is already set to normal. If I don't do my workaround and use a mouse the orientation is set to right. If I change it to normal everything is working fine but after a restart the problem comes back.

  4. #4
    Join Date
    Mar 2010
    Beans
    25

    Re: Wrong screen orientation at login screen and after login

    I have the ExoPC vesion of this tablet (aka: Ciara Vibe). This problem has been perplexing me too.

    I can set a screen/touchscreen/mouse orientation manually, by using xrandr and xinput commands in a bash script. I think if I could get this file to execute at boot, it might correct the problem. But, nothing I have tried solves this.

    My script:

    Code:
    #!/bin/bash
    
    xrandr --output LVDS1 --rotate normal
    xinput set-prop --type=int --format=8 "eGalax Inc. USB TouchController" "Evdev Axes Swap" 0
    xinput set-prop --type=int --format=8 "eGalax Inc. USB TouchController" "Evdev Axis Inversion" 0 0
    xinput set-prop --type=int --format=8 "eGalax Inc. USB TouchController Pen" "Evdev Axes Swap" 0
    xinput set-prop --type=int --format=8 "eGalax Inc. USB TouchController Pen" "Evdev Axis Inversion" 0 0
    xinput set-prop --type=int --format=8 4 "Evdev Axis Inversion" 0 0

  5. #5
    Join Date
    Mar 2010
    Beans
    25

    Re: Wrong screen orientation at login screen and after login

    Upon further review:

    Although a similar bash script worked in a different tablet, the xinput commands don't actually appear to change the touchscreen. The accelerometer is controlled by the asus_laptop module. This module appears to have mapped the accelerometer as a joystick, creating /dev/input/js0.

    It also seems to be mapped as an input. running this command will list all of the events currently present:
    Code:
    cat /sys/class/input/input*/name
    Running evtest on every event, I determined it is currenly mapped as event7:

    Code:
    sudo evtest /dev/input/event7
    Still can't correct the default orientation.

  6. #6
    Join Date
    Mar 2010
    Beans
    25

    Re: Wrong screen orientation at login screen and after login

    Well, it looks as if the method of rotating touchscreens has changed. Thanks for the tip from Anton in this bug report:

    https://bugs.launchpad.net/ubuntu/+s...v/+bug/1103723

    He directs us to this page of the Ubuntu wiki:

    https://wiki.ubuntu.com/X/InputCoordinateTransformation

    So, I redid my script to this:

    Code:
    #!/bin/bash
    
    xinput set-prop "eGalax Inc. USB TouchController" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
    xinput set-prop --type=int --format=8 4 "Evdev Axis Inversion" 0 0
    xrandr --output LVDS1 --rotate normal
    When run when the tablet is rotated in any orientation other than 'normal', this will switch everything to normal orientation.

    I put a copy of it in my /etc folder, and then I added the path to the script in the /etc/rc.local file. But, it still has the same problem at login. But I feel that I may be one step closer.

    Posted from my ExoPC tablet running Ubuntu 13.10
    Last edited by waterhead; December 22nd, 2013 at 01:14 AM.

  7. #7
    Join Date
    Mar 2010
    Beans
    25

    Re: Wrong screen orientation at login screen and after login

    More info:

    It seems there was a somewhat recent patch to get the accelerometer on this tablet working:

    http://honk.sigxcpu.org/con/Accelero...in_GNOME3.html

    It does seem to be controled by the gnome-settings-daemon. The patch that it refers to was added to udev version 204, which Ubuntu 13.10 has.

    Running this command:

    Code:
    sudo gnome-settings-daemon --debug
    Actually caused my screen to rotate to the right! I haven't found anything via the gsettings command where I could change this, but I will keep looking.

  8. #8
    Join Date
    Aug 2013
    Beans
    22

    Re: Wrong screen orientation at login screen and after login

    Did you try to let LightDM run your scripts? Rc.local probably runs them before the x-server is even started.

    This page describes how to run a script with LightDM.
    https://wiki.ubuntu.com/LightDM#Autorun_a_Command


    Unfortunatly that didn't work for me but if you add

    Code:
    xrandr --output LVDS1 --rotate normal
    to the autostart the screen won't rotate to the right after the login again.
    Last edited by daniel-holz91; December 29th, 2013 at 05:31 PM.

  9. #9
    Join Date
    Mar 2010
    Beans
    25

    Re: Wrong screen orientation at login screen and after login

    Quote Originally Posted by daniel-holz91 View Post
    Did you try to let LightDM run your scripts? Rc.local probably runs them before the x-server is even started.

    This page describes how to run a script with LightDM.
    https://wiki.ubuntu.com/LightDM#Autorun_a_Command
    I have tried that, but it still doesn't work. I do see it rotate to 'normal', then back to the right. There are some X options that can be added to the lightdm.conf file, but I can't find an example of how to use them.

    Quote Originally Posted by daniel-holz91 View Post

    Unfortunatly that didn't work for me but if you add

    Code:
    xrandr --output LVDS1 --rotate normal
    to the autostart the screen won't rotate to the right after the login again.
    That I also have successfully used. But I really want to fix the login screen.

    EDIT:
    To see all of the available options that can be used in the lightdm.conf file, refer to this file:

    /usr/share/doc/lightdm/lightdm.conf.gz
    Last edited by waterhead; December 29th, 2013 at 05:53 PM.

  10. #10
    Join Date
    Aug 2013
    Beans
    22

    Re: Wrong screen orientation at login screen and after login

    Is there any way to disable the accelerometer at the greeter or to rotate the screen after the accelerometer turns it?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •