mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
xorg-server: cleanup the udev rule a bit
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f508c8aba3
commit
624710450d
@ -23,27 +23,24 @@ ACTION!="add|change", GOTO="end_video"
|
|||||||
# xorg_start only does something for subsystem "pci" and "video" class.
|
# xorg_start only does something for subsystem "pci" and "video" class.
|
||||||
SUBSYSTEM=="pci", ATTR{class}=="0x030000", GOTO="subsystem_pci"
|
SUBSYSTEM=="pci", ATTR{class}=="0x030000", GOTO="subsystem_pci"
|
||||||
SUBSYSTEM=="drivers", GOTO="subsystem_drivers"
|
SUBSYSTEM=="drivers", GOTO="subsystem_drivers"
|
||||||
|
GOTO="end_video"
|
||||||
|
|
||||||
# check for drivers dont use the pci substem
|
# check for drivers dont use the pci substem
|
||||||
LABEL="subsystem_drivers"
|
LABEL="subsystem_drivers"
|
||||||
|
|
||||||
KERNEL=="nvidia", ENV{xorg_driver}="nvidia", GOTO="start_xorg"
|
KERNEL=="nvidia", ENV{xorg_driver}="nvidia", GOTO="start_xorg"
|
||||||
|
|
||||||
GOTO="end_video"
|
GOTO="end_video"
|
||||||
|
|
||||||
# check for drivers using the pci substem
|
# check for drivers using the pci substem
|
||||||
LABEL="subsystem_pci"
|
LABEL="subsystem_pci"
|
||||||
|
|
||||||
DRIVER=="i915", ENV{xorg_driver}="i915", GOTO="start_xorg"
|
DRIVER=="i915", ENV{xorg_driver}="i915", GOTO="start_xorg"
|
||||||
DRIVER=="nouveau", ENV{xorg_driver}="nouveau", GOTO="start_xorg"
|
DRIVER=="nouveau", ENV{xorg_driver}="nouveau", GOTO="start_xorg"
|
||||||
|
#DRIVER=="nvidia", ENV{xorg_driver}="nvidia", GOTO="start_xorg"
|
||||||
DRIVER=="radeon", ENV{xorg_driver}="radeon", GOTO="start_xorg"
|
DRIVER=="radeon", ENV{xorg_driver}="radeon", GOTO="start_xorg"
|
||||||
#DRIVER=="vmware", ENV{xorg_driver}="vmware", GOTO="start_xorg"
|
DRIVER=="vmware", ENV{xorg_driver}="vmware", GOTO="start_xorg"
|
||||||
|
|
||||||
GOTO="end_video"
|
GOTO="end_video"
|
||||||
|
|
||||||
# start Xorg
|
# start Xorg
|
||||||
LABEL="start_xorg"
|
LABEL="start_xorg"
|
||||||
|
ENV{xorg_driver}=="?*", RUN+="/lib/udev/xorg_start"
|
||||||
ACTION=="add|change", RUN+="/lib/udev/xorg_start"
|
|
||||||
|
|
||||||
LABEL="end_video"
|
LABEL="end_video"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user