Skip to content

Commit

Permalink
feat: upd displaylink-debian kernel >= 6.6.0 (AdnanHodzic#920)
Browse files Browse the repository at this point in the history
Starting with kernel version 6.6.0 and above the detection and configuration of
Intel graphic card subsystem does not work anymore.

With this patch i keep the behaviour as is for kernel <6.6.0 and
add a different one for newer kernels.

comment in displaylink-debian.sh
use different content in $cardsub to repair Intel Subsystem handling with kernel >= 6.6  (issue: 920)

Fixes AdnanHodzic#920
  • Loading branch information
rogue73 committed Jun 7, 2024
1 parent 512d29b commit 146700a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions displaylink-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,14 @@ modesetting(){
test ! -d /etc/X11/xorg.conf.d && mkdir -p /etc/X11/xorg.conf.d
drv=$(lspci -nnk | grep -i vga -A3 | grep 'in use'|cut -d":" -f2|sed 's/ //g')
drv_nvidia=$(lspci | grep -i '3d controller' | sed 's/^.*: //' | awk '{print $1}')
cardsub=$(lspci -nnk | grep -i vga -A3|grep Subsystem|cut -d" " -f5)

# use different content in $cardsub to repair Intel Subsystem handling with kernel >= 6.6 (issue: 920)
if [ "$(ver2int $kernel_check)" -ge "$(ver2int '6.6')" ];
then
cardsub=$(lspci -nnk | grep -i vga -A3)
else
cardsub=$(lspci -nnk | grep -i vga -A3|grep Subsystem|cut -d" " -f5)
fi

# intel displaylink xorg.conf
xorg_intel(){
Expand Down Expand Up @@ -628,10 +635,17 @@ elif [ "$drv" == "amdgpu" ];
then
xorg_amd
# set xorg for Intel cards
# use different content in $cardsub to repair Intel Subsystem handling with kernel >= 6.6 (issue: 920)
elif [ "$drv" == "i915" ];
then
# set xorg modesetting for Intel cards (issue: 179, 68, 88, 192)
if [ "$cardsub" == "v2/3rd" ] || [ "$cardsub" == "HD" ] || [ "$cardsub" == "620" ] || [ "$cardsub" == "530" ] || [ "$cardsub" == "540" ] || [ "$cardsub" == "UHD" ] || [ "$cardsub" == "GT2" ];
if [[ "$cardsub" == *"v2/3rd"* ]] ||
[[ "$cardsub" == *"HD"* ]] ||
[[ "$cardsub" == *"620"* ]] ||
[[ "$cardsub" == *"530"* ]] ||
[[ "$cardsub" == *"540"* ]] ||
[[ "$cardsub" == *"UHD"* ]] ||
[[ "$cardsub" == *"GT2"* ]];
then
if [ "$(ver2int $xorg_vcheck)" -gt "$(ver2int $newgen_xorg)" ];
then
Expand Down

0 comments on commit 146700a

Please sign in to comment.