“I want more”©

Tags:
No Comments »

Un billet sous forme de pense bête. Au boulot, j’ai un bestiau de ce genre, qui a la bonne idée de posséder une sortie VGA. Voici les quelques bidouilles nécessaires pour tirer profit de cette dernière :

. Le malheureusement inévitable xorg.conf

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "i2c"
        Load    "bitmap"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
EndSection

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"
EndSection

Section "Device"
        Identifier      "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller 0"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Option  "AccelMethod"   "EXA"
        Screen          0
EndSection

Section "Device"
        Identifier      "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller 1"
        Driver          "i810"
        BusID           "PCI:0:2:1"
        Option  "AccelMethod"   "EXA"
        Screen          1
EndSection

Section "Monitor"
        Identifier      "Monitor 0"
        Option          "DPMS"
        Option          "XAANoOffscreenPixmaps" "true"
EndSection

Section "Monitor"
        Identifier      "Monitor 1"
        Option          "DPMS"
        Option          "XAANoOffscreenPixmaps" "true"
EndSection

Section "Screen"
        Identifier      "Screen 0"
        Device          "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller 0"
        Monitor         "Monitor 0"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x800" "1024x768"
                Virtual         2560 1024
        EndSubSection
EndSection

Section "Screen"
        Identifier      "Screen 1"
        Device          "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller 1"
        Monitor         "Monitor 1"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1024x768"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen 0        "Screen 0"
        Screen 1        "Screen 1" RightOf "Screen 0"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
        Option "Clone" "false"
EndSection

Section "DRI"
        Mode    0666
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection

Notez l’utilisation du module EXA, qui remplace avantageusement son ancètre XAA, moins véloce.

. La commande xrandr permettant d’”étendre” le display sur le second ecran :

$ xrandr --output VGA --mode 1280x1024

. Et en bonus, cette petite astuce qui permet de déplacer gnome-panel sur l’écran du portable, puisque par defaut, le panel va se coller sur l’écran supplémentaire :

$ gconftool --type int --set /apps/panel/toplevels/top_panel_screen0/monitor 1
$ gconftool --type int --set /apps/panel/toplevels/bottom_panel_screen0/monitor 1

Me voici donc muni d’un ecran virtuel de résolution 2560×1024, et franchement, ça tape. Ah, juste un bémol, la carte graphique du lappy est une Intel 945GM, et on peut lire ici et là qu’il n’est pas possible d’avoir du DRI avec une resolution dépassant 2048×2048. Pas cool.

et la j’met des chromes tu vois

Tags:
3 Comments »

Parfois, j’aime bien les trucs qui font gouzi-gouzi, ça dure jamais, mais sur le coup j’aime bien. Voici une petite astuce dont j’ai piqué la substance sur un forum Ubuntu: iMil veut un gnome-terminal borderless et transparent :

$ sudo apt-get install alltray
$ alltray -s --borderless -nt "gnome-terminal --window-with-profile=Trans"

En ayant préalablement créé un profil gnome-terminal “Trans” dont la particularité est d’être transparent, donc.

Notez que ce n’est pas du tout l’objectif de alltray, initialement prévu pour “docker” n’importe quelle application qui ne possède pas de fonction de type “tray icon”.

WP Theme & Icons based on GlossyBlue by N.Design Studio
Banner from www.trynthlas.com
Entries RSS Comments RSS Log in