Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Linpus anyone?

  1. #21
    FLAC
    Join Date
    Oct 2006
    Posts
    1,023
    no x11 folder at all on any hd*

  2. #22
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Quote Originally Posted by Punky View Post
    no x11 folder at all on any hd*
    Was just something I saw on a Asus site talking about Linpus. Did you try to do a "locate xorg" or similar to see if a copy exists somewhere else?

    Otherwise, looks like your either going to just have to use the copy-over workaround, hack the x startup script to use an alternate x conf (yours) or get very chummy with your startup scripts to see where it's getting generated.

    Not everything those scripts use will be under /etc/init.d, they may run other scripts that may exist in /var or /etc or any other place the distro maker decided to install things.

    I couldn't find much to the cause of why you might get an error with setting the immutable bit on the file, I saw it mentioned a few times, but found no answers. Only thing I can think of is the partition it's on is read-only or something.

  3. #23
    FLAC
    Join Date
    Oct 2006
    Posts
    1,023
    i tired the locate but it doesnt find anything, even the original xorg.conf file.
    i'll try to dig around some more over the weekend. where/what else should i look for?

  4. #24
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Quote Originally Posted by Punky View Post
    i tired the locate but it doesnt find anything, even the original xorg.conf file.
    i'll try to dig around some more over the weekend. where/what else should i look for?
    Well, locate only looks at file names, not contents, you could try something like

    Code:
    grep -lir "xorg.conf" /etc/*
    and it will output the name of anyfile on the system containing xorg.conf, probably want to look in /var as well.


    Only thing I can suggest is trying to find some linpus forums where you can ask, or basically, reading through your init, from start to finish, including, well, all the includes to see what happens when. A bit tedious, but sometimes it's the only way.

  5. #25
    FLAC
    Join Date
    Oct 2006
    Posts
    1,023
    I got a few files of interest from your command. Just posting them first now, i'll have a look at them soon.
    test_device.sh
    #!/bin/sh
    # 2007-10-16 [email protected]
    # for Arima touchscreen & Touchpad autodetect device number

    Inputfile=/proc/bus/input/devices

    #Inputfile=/data/Arima/devices

    eventline=`sed -n '/Touchkit/{
    n
    n
    n
    p
    }' $Inputfile`
    echo $eventline
    event=`echo $eventline | awk -F " " '{print $3}'`

    mouseline=`sed -n '/TouchPad/{
    n
    n
    n
    p
    }' $Inputfile`
    echo $mouseline
    mouse=`echo $mouseline| awk -F " " '{print $2}' | awk -F "=" '{print $2}'`

    echo "event=$event"
    echo "mouse=$mouse"

    if [ -z $event ]; then
    event=event1
    fi
    if [ -z $mouse ]; then
    mouse=mice
    fi

    # replace Egalax TouchScreen Device event number
    sed -e "/\"egalax/{
    a\Option\ \"Device\"\ \"/dev/input/$event\"
    n
    d
    }
    " /etc/X11/xorg.conf > /tmp/xorg.conf.touch

    # replace TouchPad Mouse Number

    sed -e "/Identifier\s*\"Mouse0/{
    n
    n
    n
    a\ \ \ Option\ \ \"Device\"\ \ \"/dev/input/$mouse\"
    d
    }
    " /tmp/xorg.conf.touch > /tmp/xorg.conf.mouse
    mv -f /tmp/xorg.conf.mouse /etc/X11/xorg.conf
    rm -rf /tmp/xorg.conf.touch
    autodetect_libgl.sh
    #!/bin/bash
    grep vesa /etc/X11/xorg.conf
    if [ $? = 0 ];then
    cp /etc/mplayer/mplayer.conf.x11 /etc/mplayer/mplayer.conf
    else
    cp /etc/mplayer/mplayer.conf.xv /etc/mplayer/mplayer.conf
    fi

    lspci -n | grep -q -s 1002:791e
    if [ $? = 0 ];then
    cp /etc/mplayer/mplayer.conf.x11 /etc/mplayer/mplayer.conf
    fi

    grep nvidia /etc/X11/xorg.conf
    if [ $? = 0 ];then
    unlink /usr/lib/libGL.so.1
    ln -sf libGL.so.100.14.11 /usr/lib/libGL.so.1
    unlink /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf libglx.so.100.14.11 /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf libGLcore.so.100.14.11 /usr/lib/libGLcore.so.1
    else
    grep fglrx /etc/X11/xorg.conf
    if [ $? = 0 ];then
    unlink /usr/lib/libGL.so.1
    ln -sf /usr/lib/xorg/libGL.so.1.2 /usr/lib/libGL.so.1
    unlink /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf libglx.so.mesa /usr/lib/xorg/modules/extensions/libglx.so
    unlink /usr/lib/libGLcore.so.1
    else
    unlink /usr/lib/libGL.so.1
    ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
    unlink /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf libglx.so.mesa /usr/lib/xorg/modules/extensions/libglx.so
    unlink /usr/lib/libGLcore.so.1
    fi
    fi
    lspci -n | grep -q -s 1022:2093
    if [ $? != 0 ];then
    rm -f /etc/asound.conf
    fi

    autodetect_vga_driver.sh
    #!/bin/bash
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    lspci | grep VGA | grep -q nVidia
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf -f
    fi
    lspci | grep VGA | grep -q Intel
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.intel /etc/X11/xorg.conf -f
    fi

    lspci | grep VGA | grep Intel | grep -q 82845
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.intel845 /etc/X11/xorg.conf -f
    fi

    lspci | grep VGA | grep -q ATI
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.ati /etc/X11/xorg.conf -f
    fi

    lspci | grep VGA| grep -q SiS
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.sis /etc/X11/xorg.conf -f
    fi
    lspci | grep VGA| grep -q VIA
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.via /etc/X11/xorg.conf -f
    fi
    lspci | grep VGA| grep -q S3
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.via /etc/X11/xorg.conf -f
    fi
    lspci | grep VGA| grep -q AMD
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.amd /etc/X11/xorg.conf -f
    fi
    ################################################## ###########33
    ################################################## ###########33
    lspci -n | grep -q -s 1002:5a33
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## #########
    lspci -n | grep -q -s 8086:29c2
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## #######
    lspci -n | grep -q -s 8086:29b2
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## #######
    lspci -n | grep -q -s 1039:6351
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## #######
    lspci -n | grep -q -s 1106:3343
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## ###########
    lspci -n | grep -q -s 1002:791e
    if [ $? = 0 ];then
    /bin/cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf -f
    fi
    ################################################## ###########


  6. #26
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Looks like autodetect_vga_driver.sh, though not sure why all of those xorg.conf.* files didn't show up with locate

  7. #27
    FLAC
    Join Date
    Oct 2006
    Posts
    1,023
    i have no idea either.
    after looking at the code for a while, i'm uncertain what on earth this code is doing?
    can i just comment out the whole file?

  8. #28
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Quote Originally Posted by Punky View Post
    i have no idea either.
    after looking at the code for a while, i'm uncertain what on earth this code is doing?
    can i just comment out the whole file?
    It's checking the pci bus for specific cards, and if it finds it, copies the appropriate version of xorg.conf.whatever to xorg.conf

    So you need to find which one it's using. A good first check would be to look at the ones which have the same file size as xorg.conf to figure out which.

    Another way of doing it would be to go to each xorg.conf.whatever file and insert a comment with the name.
    #xorg.conf.whatever

    Then after a reboot, you'll know which xorg config file it's using. Then you know which one you have to modify. Once you figure it out, make a backup of it, and tweak away on it.

  9. #29
    FLAC
    Join Date
    Oct 2006
    Posts
    1,023
    OK, i'm one step further, but still not working.
    I managed to get the file to save as i want it. Now i added the 800x480 into the resolution lines.... but still no 800x480 in the display manager. Did i edit the file correctly?
    # XFree86 4.0 configuration file
    # This loads all the modules...

    Section "ServerLayout"
    Identifier "XFree86 Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection

    Section "Files"
    Rgbpath "/usr/share/X11/rgb"
    FontPath "/usr/share/X11/fonts/misc"
    FontPath "/usr/share/X11/fonts/100dpi"
    FontPath "/usr/share/X11/fonts/75dpi"
    FontPath "/usr/share//X11/fonts/CID"
    FontPath "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath "/usr/X11R6/lib/X11/fonts/encodings"
    EndSection

    Section "Module"
    Load "dbe"
    Load "extmod"
    #Load "fbdevhw"
    #Load "glx"
    Load "record"
    Load "type1"
    #Load "dri"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    EndSection

    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "no"
    EndSection

    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "no"
    EndSection

    Section "Monitor"

    ### Comment all HorizSync and VertSync values to use DDC:
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "My Monitor"
    ### Comment all HorizSync and VertSync values to use DDC:
    HorizSync 30.0 - 50.0
    VertRefresh 56.0 - 75.0
    Option "dpms"
    EndSection

    Section "Device"
    Identifier "Videocard0"
    Driver "vesa"
    Option "fbdev" "/dev/fb0"
    VendorName "Videocard vendor"
    BoardName "SiS 660/661FX/M661FX/M661MX/741/741GX/M741/760/M760"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 16
    Modes "800x600" "800x480"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1024x768" "800x600" "800x480"
    EndSubSection
    EndSection

    Section "DRI"
    Group 0
    Mode 0666
    EndSection

Page 3 of 3 FirstFirst 123

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
  •