Author Topic: LXDE Config Changes by Root not holding on re-boot (Solved)  (Read 2148 times)

Offline utu

  • Jr. Member
  • **
  • Posts: 46
Greetings to all.

I was unable to make a satisfactory install of LibreOffice on a 2 Gb LiveUSB
PCLinuxOS KDE  full 11.07.  I now have such a satisfactory install using
PCLinuxOS LXDE mini 11.06.  However, a few other problems I had solved
in the KDE install have cropped up again in the LXDE install.

These used to work for me with the KDE version of PCLinuxOS:

1.  I used to do synclient TouchpadOff=1 as root to keep my inadvertent
touchpad gestures from competing with my wireless mouse.

2.  I used to do chattr +i /etc/X11/xorg.conf as root to keep PCLinuxOS
from writing over my 1366x768 resolution with 1024x768 at boot. This
is per Texstar's coaching, I'd never have thought of it. And,

3.  I used to call up /usr/bin/drakconf as root to mark syslog and ntp
to start-at-boot.

These don't work for me anymore with LXDE.  I'd appreciate any viable
LXDE work-arounds.

« Last Edit: July 25, 2011, 03:09:14 PM by utu »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #1 on: July 24, 2011, 05:02:39 PM »
Greetings to all.

I was unable to make a satisfactory install of LibreOffice on a 2 Gb LiveUSB
PCLinuxOS KDE  full 11.07.  I now have such a satisfactory install using
PCLinuxOS LXDE mini 11.06.  However, a few other problems I had solved
in the KDE install have cropped up again in the LXDE install.

These used to work for me with the KDE version of PCLinuxOS:

1.  I used to do synclient TouchpadOff=1 as root to keep my inadvertent
touchpad gestures from competing with my wireless mouse.

Install TouchpadToggle. The description from Synaptic is --
Quote
Toggle your touchpad off or on.

Quote
2.  I used to do chattr +i /etc/X11/xorg.conf as root to keep PCLinuxOS
from writing over my 1366x768 resolution with 1024x768 at boot. This
is per Texstar's coaching, I'd never have thought of it. And,

That's a system command; i.e. it is not DE specific and works across them all. Did you run the command as root (su)?
Quote from: Texstar
Open the Configure your Computer
Configure Video
Set your resolution to 1366x768
Save and exit.

Open a terminal console
su to root
type chattr +i /etc/X11/xorg.conf

This will prevent xorg.conf from being able to be modified.

To reverse the above setting:

chattr -i /etc/X11/xorg.conf

Quote
3.  I used to call up /usr/bin/drakconf as root to mark syslog and ntp
to start-at-boot.

Menu > More Applications >Configuration > Configure Your Computer.
If you're one who just has to launch from a terminal, then use the correct command --
/usr/sbin/drakconf

Quote
These don't work for me anymore with LXDE.  I'd appreciate any viable
LXDE work-arounds.

How about corrections, rather than work-arounds?
LXDE is not KDE, and KDE is not LXDE, but PCLinuxOS is PCLinuxOS.

Offline utu

  • Jr. Member
  • **
  • Posts: 46
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #2 on: July 24, 2011, 05:46:18 PM »
Thank you, Neal.

TouchpadToggle solves #1. Thanks.
sbin corrects my spelling on #2; doesn't solve the problem.

My problems #2 and #3 still need a 'solution';
I think these may be uniquely LXDE problems.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #3 on: July 24, 2011, 06:20:05 PM »
Thank you, Neal.

TouchpadToggle solves #1. Thanks.
sbin corrects my spelling on #2; doesn't solve the problem.

My problems #2 and #3 still need a 'solution';
I think these may be uniquely LXDE problems.

#2 - The command Texstar gave is a system command. It is not desktop environment specific. The system that the desktop environment loads on is the same for both PCLinuxOS-KDE and PCLinuxOS-LXDE.
LXDE has nothing to do with how xorg is configured. That's part of the system. LXDE is the desktop environment that loads on top of the system.
Try a reboot, then follow Texstar's instructions.

#3 - Are you saying you can not launch PCC at all? You should give more details. Error messages in terminal? Won't launch from menu? Won't launch from Application Launch Bar? What?

Offline utu

  • Jr. Member
  • **
  • Posts: 46
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #4 on: July 24, 2011, 07:17:44 PM »
Hello again, Neal

Regards my problem #2, Texstar's chattr idea works fine for me for KDE, but not for LXDE.
In LXDE, xorg.conf is not being changed, per se.
What is happening is the root command 'xrandr --output LVDS1 --mode 1366x768' is being
applied external to the regular, and wrong, xorg.conf.
My problem is that the change, however it's made, does not persist.
Although I can enter the xrandr manually or via gui, it won't work as a line in /etc/rc.local.   
Not a big problem, but a nuisance.

On my problem #3, how does anyone get ntpd and/or syslog to start-at-boot.
My choices via the drake services tool do not persist.


Offline utu

  • Jr. Member
  • **
  • Posts: 46
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #5 on: July 24, 2011, 08:59:15 PM »
Problem #3 is resolved by checking 'OK' after making the choices
of start-at-boot for ntpd and syslog.  My bad.

Problem #2 remains, and is not the same as the KDE xorg.conf problem.
The solution may need to examine how LXDE handles CHANGES in
screen resolution that is not the same as how it's handled in KDE.
In both cases, however, the INITIAL xorg.conf configuration is just plain
wrong for Intel video.  If that were corrected, that alone would suffice
to cure this problem in both KDE & LXDE.

« Last Edit: July 24, 2011, 09:01:06 PM by utu »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #6 on: July 24, 2011, 11:46:18 PM »

Problem #2 remains, and is not the same as the KDE xorg.conf problem.
The solution may need to examine how LXDE handles CHANGES in
screen resolution that is not the same as how it's handled in KDE.
In both cases, however, the INITIAL xorg.conf configuration is just plain
wrong for Intel video.  If that were corrected, that alone would suffice
to cure this problem in both KDE & LXDE.


As Neal has indicated, the screen resolution has nothing to do with what desktop is used. LXDE does not "handle" screen resolution differently than KDE. xorg.conf configures the Xorg server, not the desktop. Have you tried what Neal suggested? You can probably resolve your screen resolution problem by starting there.


Menu > More Applications >Configuration > Configure Your Computer.


From there, choose Hardware > Configure Video Card.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline utu

  • Jr. Member
  • **
  • Posts: 46
Re: LXDE Config Changes by Root not holding on re-boot
« Reply #7 on: July 25, 2011, 03:08:14 PM »
One answer to my question #2 is very simple:

make a one-line program /home/guest/.xprofile
xrandr --output LVDS1 --mode 1366x768

The question was, for a LiveUSB made from aPCLinuxOS LXDE 11.06 mini LiveCD,
how to get a 1366x768 resolution to come automatically, rather than 1024x768,
for a laptop with Display controller:
Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

For which  lsmod|grep -i i915 says:
[guest@localhost ~]$ lsmod | grep -i i915
i915                  436294  2
drm_kms_helper         24151  1 i915
drm                   146364  3 i915,drm_kms_helper
i2c_algo_bit            4568  1 i915
i2c_core               16500  6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video                  10008  1 i915
button                  4021  1 i915

Each user account needs such a configuration file, unfortunately.

Hint: Use the command xrandr with no arguments to find the name of your display;
in my case LVDS1.
« Last Edit: July 25, 2011, 03:20:54 PM by utu »

Offline utu

  • Jr. Member
  • **
  • Posts: 46
Re: LXDE Config Changes by Root not holding on re-boot (Solved)
« Reply #8 on: July 30, 2011, 08:57:40 PM »
My original solution to problem #1 works for PCLinuxOS if applied as
the executable one line, root:root program, synclient TouchpadOff=1
in, that is named,  /etc/X11/xinit.d/15-x11 synaptics.

This is slightly preferable to the menu command Touchpad_toggle,
since you can forget about it.  Also saves 20 Kb, or so.