[solved] xserver-xorg-legacy but I don't need it?

Kernels & Hardware, configuring network, installing services

[solved] xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 14:02

I did an upgrade and then a dist-upgrade today and the dist-upgrade wants to do this:

Code: Select all
The following NEW packages will be installed:
  xserver-xorg-legacy
The following packages will be upgraded:
  xserver-xorg


But I use open source radeon with KMS (I need to rotate one of my monitors with dual GPUs) and logind is running. Why does apt think I need this wrapper that will run xserver-xorg as SUID root? Is there some other reason why it wants to install?

release: stretch
kernal: 4.9.0-2-amd64
Last edited by sombunall on 2017-05-12 17:13, edited 1 time in total.
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 14:17

I found strange things. This returns nothing:
Code: Select all
# dmesg | grep -i modesetting


also missing is /etc/modprobe.d/radeon-kms.conf.

I wonder what happened? Is KMS missing?

Code: Select all
# aptitude search radeon | grep '^i'
i A libdrm-radeon1 - Userspace interface to radeon-specific kernel DRM services -- runtime
i A libdrm-radeon1:i386 - Userspace interface to radeon-specific kernel DRM services -- runtime
i A xserver-xorg-video-radeon - X.Org X server -- AMD/ATI Radeon display driver
# aptitude show xserver-xorg-video-radeon | grep -i installed
State: installed
Automatically installed: yes
# aptitude show xserver-xorg-video-radeon
Package: xserver-xorg-video-radeon       
Version: 1:7.8.0-1+b1
State: installed
Automatically installed: yes
Priority: optional
Section: x11
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Architecture: amd64
Uncompressed Size: 845 k
Depends: libc6 (>= 2.17), libdrm-radeon1 (>= 2.4.39), libudev1 (>= 183), xorg-video-abi-23, xserver-xorg-core (>=
         2:1.18.99.901)
Suggests: firmware-amd-graphics
Conflicts: xserver-xorg-video-radeon:i386
Provides: xorg-driver-video
-snip-
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 14:38

I see more strange things in xorg log:

Code: Select all
[ 83392.518] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 83392.518] (II) FBDEV: driver for framebuffer: fbdev
[ 83392.518] (II) VESA: driver for VESA chipsets: vesa
[ 83392.518] (II) [KMS] Kernel modesetting enabled.
[ 83392.518] (II) [KMS] Kernel modesetting enabled.
[ 83392.518] (WW) Falling back to old probe method for modesetting
[ 83392.519] (WW) Falling back to old probe method for fbdev
[ 83392.519] (II) Loading sub module "fbdevhw"
[ 83392.519] (II) LoadModule: "fbdevhw"
[ 83392.519] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 83392.519] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 83392.519]    compiled for 1.19.2, module version = 0.0.2
[ 83392.519]    ABI class: X.Org Video Driver, version 23.0
[ 83392.519] (WW) Falling back to old probe method for vesa
[ 83392.519] (II) RADEON(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32

-SNIP-

[ 83392.944] (II) UnloadModule: "modesetting"
[ 83392.944] (II) Unloading modesetting


My xorg.conf is nothing special only mouse related stuff. I even tried removing it and no change (didn't expect any). I wonder if this is some kind of dual GPU bug?

Code: Select all
# lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland PRO [Radeon R7 240/340]
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland PRO [Radeon R7 240/340]
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby phenest » 2017-05-12 15:22

xserver-xorg-legacy is a recommended package of xserver-xorg, so you maybe able to remove it. Either that or it's being pulled in via a meta-package.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 15:38

I have made some progress. Turns out I forgot to add a cryptic line to my grub to enable KMS:

Code: Select all
GRUB_GFXPAYLOAD_LINUX=640x480x24


I have been running for years without KMS apparently. They must have fixed the screen rotation bug with dual GPUs years ago. Huh. So now dmesg shows that I have KMS. You know I wondered why youtube was a bit choppy on firefox all this time (but still watchable). It doesn't seem choppy now.

Code: Select all
# dmesg | grep -i modese
[    8.226566] [drm] radeon kernel modesetting enabled.
[    8.258963] [drm] initializing kernel modesetting (OLAND 0x1002:0x6613 0x174B:0xE263 0x00).
[    9.228613] [drm] initializing kernel modesetting (OLAND 0x1002:0x6613 0x174B:0xE263 0x00).


What happened was I created a custom grub partition and only have grub installed for 1 OS that controls it... so somehow during that project I neglected KMS.

Only 1 thing however. It still wants to install when I dist-upgrade because the driver must have been there all along it was just disabled in grub. Still need help. I can't find any metapackage googling for xserver-xorg-legacy
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby phenest » 2017-05-12 15:59

What happens if you try and remove it? It may give you a clue as to why it's there.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 16:03

phenest wrote:What happens if you try and remove it? It may give you a clue as to why it's there.


It's not installed so can't remove.
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby phenest » 2017-05-12 16:14

What happens if you do the upgrade with --no-install-recommends?
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 16:20

Now it only wants to upgrade xserver-xorg :D . That sounds sensible but don't I need to set something to make it not ask me again?
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: xserver-xorg-legacy but I don't need it?

Postby phenest » 2017-05-12 16:30

You can, but it does affect everything that apt installs. If you're happy with that, add:
Code: Select all
APT::Install-Recommends "false";

... to /etc/apt/apt.conf.d/99synaptic
This is the same file created by synaptic if you disabled recommended packages. After that, do:
Code: Select all
apt-get update

... and from then on, no recommended packages will be installed. If you ever want to install recommended packages on a temporary basis, use:
Code: Select all
apt-get --install-recommends install <name_of_package>

Also works with upgrade.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-12 17:13

I'm willing to put up without recommends be default. Thanks phenest!
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36

Re: [solved] xserver-xorg-legacy but I don't need it?

Postby phenest » 2017-05-12 17:16

You're welcome.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: [solved] xserver-xorg-legacy but I don't need it?

Postby sombunall » 2017-05-14 19:37

Code: Select all
(II) UnloadModule: "modesetting"
(II) Unloading modesetting


Looks like xorg always unloads the module even when KMS is enabled. My KMS was always on for xorg, just not in the TTY console without that grub line. I guess I hallucinated firefox was better.
sombunall
 
Posts: 58
Joined: 2009-05-20 20:36


Return to System configuration

Who is online

Users browsing this forum: mountaineer and 8 guests

fashionable