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 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?

#302 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.

#303 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)

#304 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.

#305 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

#306 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.

#307 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.

#308 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.

#309 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.

#310 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.

#311 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.

#312 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.

#313 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.

#314 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.

#315 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.

#316 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).

#317 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

#318 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?

#321 Hardware & System Configuration » how to tell dpkg to stay away from kernel module blacklist? [SOLVED] » 2018-04-13 16:55:21

GNUser
Replies: 3

I was surprised and angry when I discovered that some application renamed my /etc/modprobe.d/blacklist.conf to /etc/modprobe.d/blacklist.conf.dpkg-bak. I'm guessing from the name that the culprit was dpkg, but I can't be sure.

This is upsetting because one of the blacklisted kernel modules is uvcvideo, which was blacklisted to disable my webcam for privacy reasons. (I have black tape over the webcam, but I also want that sucker's kernel module blacklisted just to be paranoid.) Running lsmod | grep uvcvideo confirms that the module is loaded (i.e., renaming blacklist.conf disables the blacklist).

Please, how do I make sure that dpkg (assuming it was the culprit) never ever does this again?

#322 Re: Hardware & System Configuration » ejected usb device immediately remounts itself » 2018-04-13 15:33:30

I am giving up on this for now. I'm sticking with a newer kernel that doesn't have this issue. Using "nomodeset" boot option with the newer kernels has (so far) eliminated the graphics artifacts I was trying to avoid.

#323 Re: Hardware & System Configuration » ejected usb device immediately remounts itself » 2018-04-13 12:46:30

Here is an example of the problem, with kernel image 4.0.8-2 amd64 (from Debian snapshots). The relevant output from dmesg, from the time I give the "Safely Remove Drive" command is below. The output shows the device disconnecting then about 0.4 seconds later it is detected as a new device (see lines I marked with asterisks):

[   59.310643] sd 4:0:0:0: [sdb] Synchronizing SCSI cache
[   59.428081] sd 4:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
***** [   59.464441] usb 2-2: USB disconnect, device number 2
***** [   59.841273] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[   59.863925] usb 2-2: New USB device found, idVendor=0bc2, idProduct=2322
[   59.863937] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[   59.863944] usb 2-2: Product: Expansion
[   59.863950] usb 2-2: Manufacturer: Seagate
[   59.863956] usb 2-2: SerialNumber: NA8DFHL6
[   59.871807] scsi host5: uas
[   59.874809] scsi 5:0:0:0: Direct-Access     Seagate  Expansion        9300 PQ: 0 ANSI: 6
[   59.876620] sd 5:0:0:0: Attached scsi generic sg2 type 0
[   59.876695] sd 5:0:0:0: [sdb] 1953525167 512-byte logical blocks: (1.00 TB/931 GiB)
[   59.876698] sd 5:0:0:0: [sdb] 4096-byte physical blocks
[   59.877103] sd 5:0:0:0: [sdb] Write Protect is off
[   59.877107] sd 5:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[   59.877297] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   59.877677] xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
[   59.877681] xhci_hcd 0000:04:00.0: @000000026312df00 00000000 00000000 1b000000 01038000
[   60.646377]  sdb: sdb1
[   60.647569] sd 5:0:0:0: [sdb] Attached SCSI disk
[   61.378077] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

Any idea why the disconnected device is then immediately being detected as a new device?

P.S. I have no idea what to do with this information, but I've noticed a pattern:
- In the old kernels that don't have this issue (e.g., 3.16.x), only xhci_hcd kernel module exists
- In the kernels that have the issue (3.18-4.3), which I would like to use once I can fix this, both xhci_hcd and xhci_pci kernel modules exist
- In newer kernels that don't have this issue (but give me graphics artifacts) (4.4+) neither kernel module exists

#324 Hardware & System Configuration » ejected usb device immediately remounts itself » 2018-04-13 00:07:02

GNUser
Replies: 2

I have an ExpressCard in my T400 laptop that provides two USB3 ports. I've noticed that when running a wide range of kernels (3.18.x-4.3.x), whenever I right-click on a USB3 device's desktop icon and choose to "Safely Remove" it, the device is unmounted and powered down as expected...but almost immediately it powers back up and is mounted again. Therefore, I have to shut down the laptop in order to feel comfortable unplugging the device.

The expected behavior, of course, is for "Eject" or "Safely Remove" to unmount the device and power it off, and for it to remain unmounted and powered off until I unplug the device and plug it back in.

This strange behavior does not occur with the native (USB2) ports on my laptop--it only affects the USB3 ports on the ExpressCard. The card uses the xhci_hcd kernel module.

I could simply avoid the kernels in the problem range, of course, but other kernels (both older and newer) cause more subtle issues (primarily graphics-related) that are more difficult to describe/search for.

Please, do you know a workaround/hack/configuration setting that will prevent USB devices plugged in to my ExpressCard from immediately remounting themselves after I eject them? If not, any idea how to go about troubleshooting this?

I scoured the internet for any information on this issue, and this unsolved thread is all I could find:
https://askubuntu.com/questions/647478/ … ust-remoun

System details:
- Devuan ASCII, fully up to date
- MATE 1.16.2
- udisks2 2.1.8-1+devuan2
- lightdm 1.18.3-1

#325 Re: Desktop and Multimedia » Themes etc. after upgrade Jessie to Ascii - LXDE » 2018-04-06 19:34:26

Hi, Geoff42. I'm using the Arc-Darker theme plus my scrollbar hack (plus a custom metacity-1 theme--see rant below). I don't use emacs (I'm a vim/geany person) so can't comment there, but my scrollbar hack works nicely in Synaptic.

I was hoping my scrollbar hack would work with any theme, but I guess I was just lucky with all the themes I tried.

Rant: Another annoying thing about the new themes are the "flat" window titlebars. When these titlebars overlap, it is impossible to know where one window's titlebar ends and another window's titlebar begins. I spent an unhealthy amount of time hacking a metacity-1 theme to a) have titlebar color gradient, b) use Arc-Darker's minimize/maximize/close buttons, and c) integrate well with the colors of the Arc-Darker theme. The metacity theme is here in case anyone is interested. I know the theme works if you are using metacity or marco as your WM, probably wouldn't work with other WMs but I'm not sure. To try it: Download the tarball, extract it, put the extracted folder in /usr/share/themes/, then customize your theme to use FineryDark-ArcButtons for "window borders".

Board footer

Forum Software