The officially official Devuan Forum!

You are not logged in.

#301 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 15:43:20

From looking at the output of the udevadm command in post #11, another option might be to somehow blacklist the button driver. Alas, button does not seem to be a kernel module (I don't see button in the output of lsmod), so I have no idea how to blacklist it.

#302 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 15:14:24

Here is the output of udevadm info -a -n /dev/input/event1:

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00/input/input1/event1':
    KERNEL=="event1"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00/input/input1':
    KERNELS=="input1"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{uniq}==""
    ATTRS{properties}=="0"
    ATTRS{phys}=="PNP0C0D/button/input0"
    ATTRS{name}=="Lid Switch"

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00':
    KERNELS=="PNP0C0D:00"
    SUBSYSTEMS=="acpi"
    DRIVERS=="button"
    ATTRS{hid}=="PNP0C0D"
    ATTRS{path}=="\_SB_.PCI0.LPCB.EC__.LID_"

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00':
    KERNELS=="PNP0C09:00"
    SUBSYSTEMS=="acpi"
    DRIVERS=="ec"
    ATTRS{uid}=="0"
    ATTRS{hid}=="PNP0C09"
    ATTRS{path}=="\_SB_.PCI0.LPCB.EC__"

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a':
    KERNELS=="device:2a"
    SUBSYSTEMS=="acpi"
    DRIVERS==""
    ATTRS{adr}=="0x001f0000"
    ATTRS{path}=="\_SB_.PCI0.LPCB"

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00':
    KERNELS=="PNP0A08:00"
    SUBSYSTEMS=="acpi"
    DRIVERS==""
    ATTRS{adr}=="0x00000000"
    ATTRS{hid}=="PNP0A08"
    ATTRS{path}=="\_SB_.PCI0"

  looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00':
    KERNELS=="LNXSYBUS:00"
    SUBSYSTEMS=="acpi"
    DRIVERS==""
    ATTRS{hid}=="LNXSYBUS"
    ATTRS{path}=="\_SB_"

  looking at parent device '/devices/LNXSYSTM:00':
    KERNELS=="LNXSYSTM:00"
    SUBSYSTEMS=="acpi"
    DRIVERS==""
    ATTRS{hid}=="LNXSYSTM"
    ATTRS{path}=="\"

The lid switch has the convenient "Lid Switch" name attribute. Can someone help me write a udev rule that will disable the lid switch?

I know very little about udev rules, but tried creating /etc/udev/rules.d/90-disable-lid-switch with this in it:

ACTION=="add", ATTRS{name}=="Lid Switch", RUN="/bin/sh -c 'echo 0 >/sys/\$devpath/authorized'"

Not surprisingly, my feeble attempt at a udev rule had no effect--lid switch is still functional and able to trigger the video bug.

#303 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 14:24:05

Thank you for that, mlsmith. I tried it and closing/reopening the lid still triggers the bug.

I think my best chance is to disable the lid switch at the lowest possible level. dmesg shows this:

bruno@thinkpad:~$ dmesg | grep Lid
[    0.797043] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00/input/input1
[    0.797058] ACPI: Lid Switch [LID]

Is eudev related to the first line above?

I will try ralph.ronnquist's idea to explore eudev meanwhile.

#304 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 12:55:14

@ralph.ronnquist. I have very strange results to report:

1. My lid switch is /dev/input/event1, so manually deleted /dev/input/event1. I also deleted /var/log/Xorg.0.log
2. I then kill X (Control + Alt + Backspace) and log back in
3. /var/log/Xorg.0.log shows the same Lid Switch lines (it is added as /dev/input/event1) even though /dev/input/event1 does not exist
4. Closing and opening the lid triggers the crazy graphics bug

@mlsmith:

bruno@thinkpad:~$ cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
HDEF	  S4	*disabled  pci:0000:00:1b.0
USB1	  S4	*enabled   pci:0000:00:1d.0
USB2	  S4	*enabled   pci:0000:00:1d.1
USB3	  S4	*enabled   pci:0000:00:1d.2
EHC1	  S4	*enabled   pci:0000:00:1d.7
USB4	  S4	*enabled   pci:0000:00:1a.0
USB5	  S4	*enabled   pci:0000:00:1a.1
USB6	  S4	*enabled   pci:0000:00:1a.2
EHC2	  S4	*enabled   pci:0000:00:1a.7
SLT1	  S4	*disabled  pci:0000:05:00.0
SLT2	  S4	*disabled
SLT3	  S4	*disabled
SLT6	  S4	*disabled
LANC	  S3	*disabled
LANR	  S3	*disabled
SLPB	  S3	*enabled   platform:PNP0C0E:00
LID	  S3	*enabled   platform:PNP0C0D:00

#305 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 12:40:09

ralph.ronnquist, I updated my post above with the subsequent lines from the log. It does seem that something else is presenting the lid switch to X.

I will do the experiment and will report back in a minute.

#306 Re: Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 11:09:24

Thank you, ralph.ronnquist. X is indeed grabbing the lid switch as a device, because this line is in /var/log/Xorg.0.log:

[     7.945] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[     7.945] (II) No input driver specified, ignoring this device.
[     7.945] (II) This device may have been added with another device file.

However, xserver-xorg-input-evdev is not installed. Only these xserver-xorg-input-* packages are installed on my system:

xserver-xorg-input-all 1:7.7+19
xserver-xorg-input-libinput 0.23.0-2
xserver-xorg-input-synaptics 1.9.0-1+b1
xserver-xorg-input-wacom 0.34.0-1

Any ideas?

#307 Hardware & System Configuration » how to completely disable laptop lid detection? [SOLVED] » 2018-04-28 01:19:07

GNUser
Replies: 23

I have a T400 with Libreboot and Devuan ASCII with MATE and lightdm. Everything works great except that closing and opening the laptop lid triggers a horrible graphics bug*.

I think the simplest fix would be to completely disable the laptop lid detection. Here is what I already did:

1. HandleLidSwitch=ignore in /etc/elogind/logind.conf
2. IgnoreLid=true in /etc/UPower/UPower.conf
3. deleted /etc/acpi/events/lid-acpi-support

However, even with the three changes above, something still detects the laptop lid because closing/reopening the lid continues to trigger the bug 100% of the time.

Please, how do I completely disable the laptop lid switch? I'd do it with a piece of tape if there were a physical switch, but I can't find a switch (I think there are some magnets and magnet sensors hiding somewhere).

* The bug is a horizontal line across the screen below which I can see nothing. The line follows the cursor around when I move the mouse up and down. Blacklisting the i915 kernel module and using vesa graphics driver makes this bug go away, so I know this is a software issue and not a hardware issue.

#308 Hardware & System Configuration » what are the driver options for integrated Intel graphics? » 2018-04-19 18:06:41

GNUser
Replies: 6

I'm on a T400 with integrated Intel graphics. Are there any other graphics drivers for this hardware other than i915 and VESA? My searches so far have been futile. The problem with i915 is that it gives me some occasional and unsightly artifacts, while VESA lakcs gamma ramps and therefore breaks one of my favorite applications (redshift).

This is my hardware:

bruno@thinkpad:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

#309 Re: Desktop and Multimedia » redshift not working with VESA graphics [not gonna happen] » 2018-04-19 17:33:02

I guess the problem is that redshift requires an adjustable "gamma ramp" (per redshift's github page), but the VESA graphics driver does not offer a gamma ramp (see Richard's first post here).

What other graphics drivers are there for my machine? My searches so far have been futile. If i915 gives me artifacts and VESA breaks redshift, I'd like to find a third option. This is my hardware:

bruno@thinkpad:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

EDIT: Since this question is a lot more broad and does not have to do with redshift specifically, I'll open a new thread for it.

#310 Desktop and Multimedia » redshift not working with VESA graphics [not gonna happen] » 2018-04-19 12:24:02

GNUser
Replies: 1

My T400 has integrated Intel graphics and normally uses the i915 graphics driver, which was giving me various video artifacts. Therefore, I've been using the laptop with VESA graphics by blacklisting the i915 kernel module.

The above made all the video artifacts go away, but unfortunately it seems to have broken redshift (which was working fine with i915). I've tried redshift with all available adjustment methods:

bruno@thinkpad:~$ redshift -m list
Available adjustment methods:
  drm
  randr
  vidmode
  dummy

Specify colon-separated options with `-m METHOD:OPTIONS'.
Try `-m METHOD:help' for help.
bruno@thinkpad:~$ redshift -O 3500 -m drm
open: No such file or directory
Failed to start adjustment method drm.
bruno@thinkpad:~$ redshift -O 3500 -m randr
Gamma ramp size too small: 0
Failed to start adjustment method randr.
bruno@thinkpad:~$ redshift -O 3500 -m vidmode
bruno@thinkpad:~$ redshift -O 3500 -m dummy
WARNING: Using dummy gamma method! Display will not be affected by this gamma method.
Temperature: 3500

The dummy method does nothing, as expected. None of the either methods work, either (vidmode does not output an error but has no effect on the monitor).

Can you guys help me adjust the color temperature of my display? I'm open to any suggestions except going back to i915. Here are some ideas:

- Somehow make one of redshift's adjustment methods work with VESA graphics driver
- Use a different tool to change the color temperature (I already tried sct and xgamma, no luck with either)
- Use a graphics driver other than i915 or VESA

#311 Re: Desktop and Multimedia » Themes etc. after upgrade Jessie to Ascii - LXDE » 2018-04-17 15:24:54

I see. Sorry I missed the detail about the theme you are using. I don't currently have Clearlook-Phenix but used it in the past and remember that it is nice-looking and conservative. I'm not surprised that its gtk2 settings give you want you want out of the box.

It sounds like you are all set with icons, but check out the gnome-colors package. It provides nice, conservative (read: non-flat and actually informative) icon sets in virtually every color. I use the blue set ("Gnome-Brave") on my system, wife likes the pink set ("Gnome-Illustrious").

The main theme-related headache I had when I upgraded to Ascii is that its newer libgtk-3-0 (version 3.22) broke the gtk3 component of the themes I was using in Jessie. Therefore, I had to head over to gnome-look.org to look for themes that support gtk3 version 3.22. The problem with these newer themes is that almost all of them are flat and lack scrollbar buttons. So I settled on one of them (Arc-Darker) and "simply" put scrollbar buttons back in and took out the flat component that was bothering me the most (window titlebars that blend into other window titlebars). The resulting custom theme is here in case you are interested.

#312 Desktop and Multimedia » Traditional GTK themes with support for GTK 3.22 » 2018-04-17 12:56:01

GNUser
Replies: 3

I have found it difficult to find GTK themes that fulfill all of these criteria:
- Support for GTK 3.22 (the gtk3 version in ASCII)
- Scrollbar buttons
- Non-flat

I thought I'd start this thread so that people can share whatever themes they find/create that have these features.

Here is my contribution: GNUser-Dark
GNUser-Dark_small.jpg

It is mostly based on Arc-Darker, with some pieces scavenged from other themes and/or hacked into submission by yours truly.

#313 Re: Off-topic » how to force scrollbar buttons on all desktop themes [SOLVED] » 2018-04-17 03:18:20

I realize that my hack only works for gtk3 applications. A lazy way to customize scrollbar for gtk2 applications is to just use all of a different theme's gtk2 settings (see post #10 here: https://dev1galaxy.org/viewtopic.php?pid=8432#p8432).

If anyone knows a more elegant solution, please share. Alas, after tinkering for several hours I can't seem to find a way to override just the scrollbar component of a theme's gtk2 settings.

#314 Re: Desktop and Multimedia » Themes etc. after upgrade Jessie to Ascii - LXDE » 2018-04-17 03:09:10

Creating a hack to override the gtk2 scrollbar settings seems to require more time and patience than I can spare. So a lazy solution is to open up Filezilla (or other gtk2 application of your choice) and keep changing the theme until finding one that makes Filezilla look nice (i.e., traditional scrollbar and reasonable color scheme). Then it's a simple matter of using those gtk2 settings instead of the gtk2 settings in your theme. For example:

I like the Arc-Darker theme the best overall, but prefer how Filezilla (and other gtk2 applications) looks with the TraditionalOk theme. Therefore:

# mv /usr/share/themes/Arc-Darker/gtk-2.0{,-bkup}
# cp -r /usr/share/themes/{TraditionalOk,Arc-Darker}/gtk-2.0

Then log out and log back in (or change theme from Arc-Darker to something else, then back to Arc-Darker) for the settings to take effect.

#315 Re: Desktop and Multimedia » Themes etc. after upgrade Jessie to Ascii - LXDE » 2018-04-16 20:13:58

Geoff42, I found an app in which my scrollbar hack isn't working: Filezilla.

Initial investigation results: My hack targets only gtk3, but some apps (such as Filezilla) rely on gtk2 settings. I will try to fix my hack so that a traditional scrollbar shows up in Filezilla.

#316 Re: Devuan Derivatives » Any Devuan-based distros that use Debian's original installer? » 2018-04-16 19:12:26

msi has a good point.

By the way, I experienced no buggy installer behavior when I installed Devuan Jessie last year or Devuan Ascii back in March. There were no contrib or non-free packages on my system after either installation.

Devuan is as committed to free software as Debian. Just remove contrib and non-free from your /etc/apt/sources.list and use vrms to find any packages you don't want. It really is as simple as that.

#317 Re: Devuan » What proprietary software does Devuan install by default? » 2018-04-14 13:05:22

Easiest way to see all contrib and non-free packages installed on your computer. In terminal:
First run: sudo apt-get install vrms (vrms stands for "virtual Richard M. Stallman" smile)
Then run: vrms

This is what you want to see:

bruno@thinkpad:~$ vrms

No non-free or contrib packages installed on thinkpad!  rms would be proud.

If not all packages on your system are free (and 100% free is what you want), just uninstall all the dirt that vrms digs up.

#318 Re: Hardware & System Configuration » nomodeset causes suspend to work only once per boot [SOLVED] » 2018-04-14 11:49:37

Since the only lines in the log having to do with graphics are these:

+ PM_QUIRKDB=/usr/lib/pm-utils/video-quirks
+ PM_LKW_QUIRKS=/var/cache/pm-utils/last_known_working.quirkdb

I tried different command line parameters having to do with quirks. This command causes suspend/resume to work as expected when running with nomodeset/vesa graphics: sudo pm-suspend --quirk-dpms-on

Wow, this was tough. I'll mark as solved.

#319 Re: Hardware & System Configuration » nomodeset causes suspend to work only once per boot [SOLVED] » 2018-04-14 11:39:47

Thanks, ralph.ronnquist. That was key.

I logged both without nomodeset (suspend working consistently) and with nomodeset (suspend works once then fails to work subsequently).

Interestingly, the logs without nomodeset and the first log with nomodeset are identical. With nomodeset, second attempt to suspend onwards do nothing and the last few lines of the log are:

+ flock -x -n 3
+ return 1
+ exit 1

It seems that the problem is that when running on vesa graphics, the pm-suspend command gets stuck at some point (presumably during the resume phase) and never finishes executing, leaving behind some kind of lock that prevents further attempts to suspend.

#320 Re: Hardware & System Configuration » nomodeset causes suspend to work only once per boot [SOLVED] » 2018-04-14 02:54:33

I did one more experiment:
Deleted the nomodeset kernel boot option, blacklisted the i915 kernel module, rebooted.

Result:
All observations are the same as when using nomodeset.

I think this proves that using the vesa fallback instead of i915 is breaking computer's ability to suspend--it does not matter if i915 is disabled directly (by blacklisting it) or indirectly (by using nomodeset).

Since i915 seems to be responsible for all the graphics bugs I was experiencing, I'm happy with vesa. Nevertheless, if anyone knows a way to make suspend work while on vesa graphics, please do share.

#321 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-04-14 00:35:01

For posterity's sake: While the 3.16.x kernel made my graphics issue go away, sometimes (~10% of the time) that kernel causes a grapics-related lock-up during boot (see https://dev1galaxy.org/viewtopic.php?id=1962).

I found that using the nomodeset kernel boot option disables i915 graphics driver, causing fallback to vesa graphics. This made all graphics artifacts go away for me on ascii, with all kernels I tested. The only two disadvantages I can think of with this approach is that it seems to break my computer's ability to suspend (see https://dev1galaxy.org/viewtopic.php?pid=8355#p8355). Also, some people report that with vesa graphics they cannot use multiple monitors at once (this doesn't affect me but I thought I'd mention it for completeness's sake).

#322 Re: Hardware & System Configuration » nomodeset causes suspend to work only once per boot [SOLVED] » 2018-04-14 00:25:49

I did a bit more research on this issue and discovered that the i915 kernel module, which is the default graphics driver on my T400 with integrated Intel graphics, requires kernel mode setting (see here). Therefore, using nomodeset kernel boot option on my machine causes it to fallback to the more barebones vesa graphics driver.

I can confirm that i915 is not the graphics driver when I use nomodeset kernel boot option.

Here is the output of  sudo lshw -c video without nomodeset (notice the "configuration:" line):

  *-display:0 UNCLAIMED     
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: memory:e1400000-e17fffff memory:d0000000-dfffffff ioport:5400(size=8) memory:c0000-dffff

And here is the output of the same command with nomodeset:

  *-display:0 UNCLAIMED     
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:e1400000-e17fffff memory:d0000000-dfffffff ioport:5400(size=8) memory:c0000-dffff

#323 Hardware & System Configuration » nomodeset causes suspend to work only once per boot [SOLVED] » 2018-04-13 20:02:20

GNUser
Replies: 6

I'm on a T400 with integrated graphics. Today I discovered that using the nomodeset kernel boot option magically makes various video artifacts go away, no matter what kernel I'm using.

An unfortunate and unexpected side effect of using nomodeset is that it breaks my machine's ability to suspend, regardless of which kernel I'm running. Both loginctl suspend and sudo pm-suspend work without nomodeset, break with nomodeset.

Does anyone know of a way to use nomodeset kernel boot option without breaking machine's ability to suspend?

Board footer

Forum Software