Bug#630015: kdebase-workspace-bin: KDE ignores user-specified screen resolution setting
Package: kdebase-workspace-bin
Version: 4:4.6.3-1
Severity: important
Tags: patch
The default KDE screen resolution on my system is 1280x1024. I can
successfully change this default using
"System Settings / Size & Orientation"
select "1600x1200", "Apply",
"Save as Default"
Afterwards the screen uses the new resolution 1600x1200.
However, after a reboot the old screen resolution (1280x1024)
will be used.
Reason:
o The default will be written to the configuration file
$HOME/.kde/share/config/krandrrc:
[Display]
ApplyOnStartup=true
StartupCommands="xrandr --output \"VGA-1\" --pos 0x0 --mode 1600x1200 --refresh 75
xrandr --output \"VGA-1\" --primary"
[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1
[Screen_0_Output_VGA-1]
Active=true
Rect=0,0,1600,1200
RefreshRate=75
Rotation=1
Note that the "StartupCommands" parameter consists of one string
containing an embedded line-feed character.
o When establishing a new session, "startkde" runs "krandrstartup"
which evaluates the variable's content as follows:
# new way of simply storing the commands
echo -e "$krandrrc_display_startupcommands" | \
while read command; do
eval "$command"
done
The "echo -e" command fails if the standard shell (/bin/sh) is
e.g. linked to "/bin/dash", which is the default shell on my
system. Reason: "-e" is not a standard option of "echo".
Solution:
The POSIX-conformant printf(1) command could be used instead of
"echo -e" for printing a string, expanding backslash
escape-characters like "\n", "\a" etc.
Example: printf "%b\n" "$krandrrc_display_startupcommands"
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.iso885915, LC_CTYPE=en_US.iso885915 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Versions of packages kdebase-workspace-bin depends on:
ii iso-codes 3.25.1-1 ISO language, territory, currency,
ii kdebase-runtime 4:4.6.3-1 runtime components from the offici
ii kdebase-workspace-d 4:4.6.3-1 shared data files for the KDE Plas
ii kdebase-workspace-k 4:4.6.3-1 KDE greet libraries for authentica
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libcln6 1.3.2-1 Class Library for Numbers (C++)
ii libfontconfig1 2.8.0-2.2 generic font configuration library
ii libfreetype6 2.4.4-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.6.0-10 GCC support library
ii libgl1-mesa-glx [li 7.10.2-2 free implementation of the OpenGL
ii libice6 2:1.0.7-1 X11 Inter-Client Exchange library
ii libjpeg62 6b1-1 The Independent JPEG Group's JPEG
ii libkcmutils4 4:4.6.3-3 utility classes for using KCM modu
ii libkde3support4 4:4.6.3-3 KDE 3 Support Library for the KDE
ii libkdecore5 4:4.6.3-3 KDE Platform Core Library
ii libkdesu5 4:4.6.3-3 Console-mode Authentication Librar
ii libkdeui5 4:4.6.3-3 KDE Platform User Interface Librar
ii libkephal4abi1 4:4.6.3-1 API for easier handling of multihe
ii libkfile4 4:4.6.3-3 File Selection Dialog Library for
ii libkidletime4 4:4.6.3-3 library to provide information abo
ii libkio5 4:4.6.3-3 Network-enabled File Management Li
ii libknewstuff3-4 4:4.6.3-3 "Get Hot New Stuff" v3 Library for
ii libknotifyconfig4 4:4.6.3-3 library for configuring KDE Notifi
ii libkparts4 4:4.6.3-3 Framework for the KDE Platform Gra
ii libkpty4 4:4.6.3-3 Pseudo Terminal Library for the KD
ii libkrosscore4 4:4.6.3-3 Kross Core Library
ii libkscreensaver5 4:4.6.3-1 library of the KDE Screensaver sys
ii libkworkspace4 4:4.6.3-1 library for the kdebase workspace
ii libnepomuk4 4:4.6.3-3 Nepomuk Meta Data Library
ii libnepomukquery4a 4:4.6.3-3 Nepomuk Query Library for the KDE
ii libpam0g 1.1.2-3 Pluggable Authentication Modules l
ii libphonon4 4:4.6.0really4.5.0-3 multimedia framework from KDE - co
ii libplasma3 4:4.6.3-3 Plasma Library for the KDE Platfor
ii libplasmagenericshe 4:4.6.3-1 shared elements for all the plasma
ii libpng12-0 1.2.44-2 PNG library - runtime
ii libprocesscore4abi1 4:4.6.3-1 library for ksysguard based proces
ii libprocessui4a 4:4.6.3-1 library for ksysguard process user
ii libqalculate5 0.9.7-5 Powerful and easy to use desktop c
ii libqimageblitz4 1:0.0.6-3 QImageBlitz image effects library
ii libqt4-dbus 4:4.7.3-1 Qt 4 D-Bus module
ii libqt4-network 4:4.7.3-1 Qt 4 network module
ii libqt4-qt3support 4:4.7.3-1 Qt 3 compatibility library for Qt
ii libqt4-sql 4:4.7.3-1 Qt 4 SQL module
ii libqt4-xml 4:4.7.3-1 Qt 4 XML module
ii libqtcore4 4:4.7.3-1 Qt 4 core module
ii libqtgui4 4:4.7.3-1 Qt 4 GUI module
ii libsm6 2:1.2.0-1 X11 Session Management library
ii libsolid4 4:4.6.3-3 Solid Library for KDE Platform
ii libsolidcontrol4abi 4:4.6.3-1 library for Solid based network ma
ii libsolidcontrolifac 4:4.6.3-1 library for Solid based network in
ii libsoprano4 2.6.0+dfsg.1-3 libraries for the Soprano RDF fram
ii libstdc++6 4.6.0-10 The GNU Standard C++ Library v3
ii libstreamanalyzer0 0.7.2-1+b1 streamanalyzer library for Strigi
ii libusb-0.1-4 2:0.1.12-17 userspace USB programming library
ii libx11-6 2:1.4.3-1 X11 client-side library
ii libxau6 1:1.0.6-1 X11 authorisation library
ii libxcursor1 1:1.1.11-1 X cursor management library
ii libxext6 2:1.3.0-1 X11 miscellaneous extension librar
ii libxfixes3 1:5.0-2 X11 miscellaneous 'fixes' extensio
ii libxft2 2.2.0-2 FreeType-based font drawing librar
ii libxi6 2:1.4.2-1 X11 Input extension library
ii libxinerama1 2:1.1.1-1 X11 Xinerama extension library
ii libxkbfile1 1:1.0.7-1 X11 keyboard file manipulation lib
ii libxrandr2 2:1.3.1-1 X11 RandR extension library
ii libxrender1 1:0.9.6-1 X Rendering Extension client libra
ii libxss1 1:1.2.1-1 X11 Screen Saver extension library
ii libxtst6 2:1.2.0-1 X11 Testing -- Record extension li
ii phonon 4:4.6.0really4.5.0-3 multimedia framework from KDE - me
ii plasma-desktop 4:4.6.3-1 KDE Plasma workspace for desktop a
ii plasma-netbook 4:4.6.3-1 KDE Plasma workspace for netbook c
ii x11-utils 7.6+2 X11 utilities
ii x11-xserver-utils 7.6+2 X server utilities
Versions of packages kdebase-workspace-bin recommends:
ii plasma-scriptengines 4:4.6.3-1 metapackage to install all Plasma
ii policykit-1-gnome 0.101-2 GNOME authentication agent for Pol
ii polkit-kde-1 0.99.0-2 KDE dialogs for PolicyKit
ii upower 0.9.11-1+b1 abstraction for power management
Versions of packages kdebase-workspace-bin suggests:
ii x11-xkb-utils 7.6+2 X11 XKB utilities
-- no debconf information
Reply to: