Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#1 Post by sombunall »

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: 73
Joined: 2009-05-20 20:36

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

#2 Post by sombunall »

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: 73
Joined: 2009-05-20 20:36

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

#3 Post by sombunall »

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]

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#4 Post by phenest »

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.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#5 Post by sombunall »

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

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#6 Post by phenest »

What happens if you try and remove it? It may give you a clue as to why it's there.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#7 Post by sombunall »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#8 Post by phenest »

What happens if you do the upgrade with --no-install-recommends?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#9 Post by sombunall »

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?

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#10 Post by phenest »

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.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#11 Post by sombunall »

I'm willing to put up without recommends be default. Thanks phenest!

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#12 Post by phenest »

You're welcome.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

sombunall
Posts: 73
Joined: 2009-05-20 20:36

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

#13 Post by sombunall »

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.

Post Reply