Page 1 of 1

startup video modes

Posted: Mon Jan 30, 2012 4:04 am
by active8r
I guess this is not hardware nor desktop / window manager related. Mainly because I want to adjust screen res during startup.

LMDE 11 ... LXDE or XFCE? I think it's the former.

My laptop is normally connected to a monitor by it's VGA output. Mint was either installed with an older monitor attached, or just using the LVDS output to the LT monitor. I switched monitors. It's not starting in the right mode when I login to a desktop session. I can issue

Code: Select all

xrandr --output VGA-0 --mode 1920x1080 --rate 60.0
and it will go to the maximum spec'd resolution for that monitor. But the task bar is offset up and to the right of bottom. Changing to desktop 2 and back with the pager/switcher hot keys fixes the menu position. The LT's monitor... I can't get the task bar at all. I could run both in doze (gag) and they'd look ok, IIRC. Unless I put icons to the far right of the larger screen and switch to LT screen. And yup... now on the LT, there is a big margin (like on the big monitor - where the low res wallpaper begins) to the left and the desktop's right edge is way off the screen.

Best setting I can get for the LT IIRC, when disco'd or not, is

Code: Select all

xrandr --output LVDS --mode 1280x1024 --rate 59.9
Dell Inspiron 600m ; ATI Radeon Mobility 9000, BTW. ATI Catalyst apps from synaptic package mgr, won't run, either.

Code: Select all

There was a problem initializing Catalyst Control Center Linux edition.  It could be caused by the following.

No ATI graphics driver is installed, or the ATI driver is not functioning properly.
Please install the ATI driver appropriate for you ATI hardware, or configure using aticonfig.
That returns

Code: Select all

No supported adapters detected
And it won't pan when the mouse moves off the LT screen - that'd be ok as much as I dislike panning. Don't really need both screens at once, but it would be nice.

I messed with an xorg.conf file to achieve resolution and virtual display to no avail. Guess I'll post that below. I tried putting the above xandr cmd in a startup script in init.d so it would be the last to load.

Code: Select all

s99xranderweak -> the script written for #!/bin/sh
I know the script executes (I also touch a file in the script), but the xrandr cmd does nothing. Maybe it's executing before the blasted gdm is done starting thanks to the wonderful, dynamic, non-blocking bleedin' bloody Upstart thingy.

I hope that's enough info.

IIRC, I can disco the external monitor and achieve some kind of normal. I noticed that even when it's powered off, xrandr will report that it's connected. I wish it would detect if it's in use. Seems that upstart and xrandr should have a way to detect the power state and set up the monitors the right way.

1. How / where can I start a script to run the xrandr command? I don't want to put it in an autostart folder, I don't like GUI tools. When I use a GUI tool, I like to know what files it mods and how.

2. Is there another way?

3. Is there a kerrnel param I can pass so that KMS can deal with it? This page: https://wiki.ubuntu.com/X/KernelModeSetting only tells how to enable and disable outs.

4. I doubt the "kernel upgrade the painless way" posted in this forum won't help since a preexisting image won't know what to do, having never met this old LT. So would a total LMDE reinstall from live CD fix this? Build my own kernel from source?

5. What is the best way to install LMDE to a LT, with or without the external monitor connected?

Please keep in mind my main objective is to be able to be mobile or at home/work with this -> LT = no headaches (i.e. having to run commands manually at startup)

TIA for helping me out - I promise I won't sing ;)

Mike

Code: Select all

# /etc/X11/xorg.conf

Section "Monitor"
  Identifier     "Monitor0"
  Option         "Primary"    "True"
  VertRefresh     59.9
EndSection

Section "Monitor"
  Identifier     "Monitor1"
  Option         "LeftOf" "Monitor0" 
  Option         "Primary"    "False"
  VertRefresh     60
EndSection

Section "Device"
  Identifier  "Card0"
  Driver      "ati"
  Option "VGA-0" "Monitor1"
EndSection

Section "Device"
  Identifier  "Card0"
  Driver      "ati"
  Option "LVDS" "Monitor0"
EndSection

Section "Screen"
  Identifier          "Screen0"
  Device              "Card0"
  Monitor             "Monitor0"
  DefaultDepth       24
    SubSection "Display"
      Modes           "1280x1024"
       
#      Virtual          4096 4096 
    EndSubSection
EndSection

Section "Screen"
  Identifier          "Screen1"
  Device              "Card0"
  Monitor             "Monitor1"
  DefaultDepth       24
    SubSection "Display"
      Modes           "1920x1080"
       
#      Virtual          4096 4096 
    EndSubSection
EndSection

Re: startup video modes

Posted: Mon Jan 30, 2012 8:42 am
by Oscar799
Moved here by moderator