The officially official Devuan Forum!

You are not logged in.

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

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

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

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

#330 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".

#331 Re: Other Issues » Chromium after upgrade - Jessie to Ascii » 2018-04-06 19:24:04

Hi, Geoff42. I'm on a fully up-to-date ASCII here. I mostly use firefox but do have chromium 64.0.3282.119-1~deb9u1, which I use as a backup browser. I installed ASCII from scratch and didn't have to do anything special to get that version of chromium. I have never had this version of chromium give off any errors or ask me to reload, not even when using Google maps.

Hopefully it will be smooth sailing for you and the error will not return. If it does, I will be happy to try to help.

#332 Desktop and Multimedia » how to customize volume osd icon? » 2018-04-06 18:30:55

GNUser
Replies: 0

This is just out of curiosity. I noticed that without compton compositor running, this is the icon I see when I press the volume buttons on my laptop:

without_compton.png

When compton is running, the icon changes to this:

with_compton.png

I was surprised by the change and was wondering why the icons are different and how to customize them. Any ideas? Duck-ducking did not turn up anything useful.

P.S. I'm on on ASCII with MATE 1.16.2. My WM is MATE's default (marco).

#333 Re: Desktop and Multimedia » trailing artifact when moving icons around MATE's desktop [SOLVED] » 2018-04-06 00:55:33

Right on, golinux!

If I turn on marco's compositing, issue gets much better. If I leave marco's compositing off, install compton, and add compton to my startup applications (command=compton -bCG), problem goes away completely.

This is strange because in Devuan Jessie I run marco with compositing off and have no issues.

(This is yet another way in which MATE is dropping the ball. I shouldn't have to turn on anything special in order to avoid weird glitches when doing something as simple as moving an icon on the desktop...)

#334 Re: Desktop and Multimedia » trailing artifact when moving icons around MATE's desktop [SOLVED] » 2018-04-05 20:57:29

I'm talking about the weird, ghostly icon that moves between the original location and new location. It happens when I drop the icon at the new location. You can see it in the video.

This is definitely not something I've seen in MATE before. Given the erratic nature of this (only part of the icon shows up in the blur, bits and pieces of the desktop background fly away and back, sometimes it does not happen at all) I'm pretty sure this is a bug.

This is not a big deal, of course, but if one of you smart guys has an instinct of what could be causing this (or know for a fact what is causing it), I'd like to try fixing it.

#335 Desktop and Multimedia » trailing artifact when moving icons around MATE's desktop [SOLVED] » 2018-04-05 20:41:32

GNUser
Replies: 4

I've been squashing bugs on my ascii partition for a few weeks and have finally gotten to the last obvious one. This is just a  cosmetic issue, but it irritates me.

I use my desktop as a workbench and frequently have multiple files on it when I'm working on a project. Part of my workflow often involves rearranging the icons so that files are grouped in ways that make sense to me. Unfortunately, on ASCII with MATE 1.16.2 and caja 1.16.6-1+deb9u1 it is a bit freaky to drag an icon to a different location of the desktop because most of the time it leaves a ghostly trailing artifact behind it. Here is a video that shows what I'm talking about:

http://files.dantas.airpost.net/public/ … tifact.mp4

The issue occurs on all kernels I've tried. I tried upgrading just caja to the version in ascii-backports (1.18.5-2~bpo9+1) and the issue was still there. I'm back on the default version now (1.16.6-1+deb9u1). This issue did not occur in Devuan Jessie with MATE.

Is anyone else having this issue with their desktop icons? Any idea how to begin troubleshooting this?

#336 Re: Hardware & System Configuration » trying to understand basics of SysVinit scripts [SOLVED] » 2018-04-03 13:00:05

The missing step was to add test to the end of the TARGETS list at the top of /etc/init.d/.depend.start

At this point I don't understand why it worked, but am happy to be one step closer to understanding.

Thanks again!

#337 Re: Hardware & System Configuration » trying to understand basics of SysVinit scripts [SOLVED] » 2018-04-03 12:46:24

Thank you, ralph.ronnquist. I guess nothing is ever as simple as it seems.

I will learn about insserv and friends, and will experiment with the hidden files. I have a full partition backup, so I can tinker with abandon.

I'll update the thread if there is a simple solution to my little exercise. If it's too complicated, it kind of defeats the purpose.

#338 Hardware & System Configuration » trying to understand basics of SysVinit scripts [SOLVED] » 2018-04-03 02:49:58

GNUser
Replies: 3

This is a super basic exercise that has me stumped. Please help and pardon my ignorance.

1. I created /etc/init.d/test with this in it:

#!/bin/sh

touch /home/bruno/Desktop/hello

Then I made the script executable.

2. I ran this command: sudo ln -s /etc/init.d/test /etc/rc2.d/S09test

3. I reboot the system.

The script does not appear to run (i.e., a file named "hello" does not show up on my desktop). What am I missing?

P.S. I do not want to use LSB headers or the update-rc.d command. I can get things to work that way, but for this exercise I want to do things manually and as simply as possible so that I can understand the absolute bare essentials.

#339 Re: Off-topic » Music » 2018-04-02 19:49:45

I'm partial to cute electronic music ("synthpop") with female vocals. Treble turned up all the way.

Sally Shapiro is one of my favorites: He Keeps Me Alive.

Freezepop is also very good: Lazy.

#340 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 16:48:38

So far, so good with linux-libre kernel 4.15.14, which I got from here: http://linux-libre.fsfla.org/pub/linux- … ol/main/l/

No graphics glitches with this kernel, and so far no hung boots. Too early to tell if hung boots issue is solved given that it only happens once in a while, but I will be optimistic and will try (again) marking this issue as solved.

If I don't post again, it's because the hung boots went away.

#341 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 15:27:28

This sounds somewhat like my issue:
https://bugzilla.kernel.org/show_bug.cgi?id=82481

Since this issue may be related to kernel 3.16 and all of 4.9, 4.13, and 4.14 were giving me graphics artifacts, I'll try my luck with 4.15 and will report back.

#342 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 14:00:52

Problem happens sometimes with startx as well. At least startx produces a (helpful?) error message when it happens:

screenshot.jpg

The interesting bit is "intel_do_flush_locked failed: Invalid argument" of course. I did some duck-ducking and it sounds like this could be a kernel bug. If so, this is extremely strange because I'm running the same kernel in ascii that I was running in jessie without any issues (I'm using the older kernel 3.16.51-3+deb8u1 because ascii's default kernel causes some graphics artifacts on my machine: https://dev1galaxy.org/viewtopic.php?id=1905).

#343 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 04:10:50

So far so good with startx. Here's what I did:

1. sudo apt-get install xinit (the xinit package contains the startx executable)
2. sudo apt-get purge lightdm
3. In /etc/inittab, comment out this line: 1:2345:respawn:/sbin/getty 38400 tty1
4. In /etc/inittab, add this line for autologin: 1:2345:respawn:/bin/login -f bruno tty1 </dev/tty1 >/dev/tty1 2>&1 (use your username instead of bruno, of course)
5. To run startx automatically upon login, add startx to ~/.profile

Hopefully the miscommunication between X and display manager (i.e., X sending a signal that it is ready for lightdm/slim to connect when it isn't actually ready) does not happen between X and startx. I'll mark as solved for now. If problem recurs I'll post again and remove the "solved" tag.

#344 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 01:29:35

Problem just recurred despite 1-4 in post #20.

I'm giving up on getting X and a display manager to consistently play nice. Will try my luck with startx, hopefully it will be more consistent.

#345 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-31 00:23:28

Thanks, ralph.ronnquist. Inserting a delay between X's ready signal and lightdm's connection attempt sounds like a promising hack, but beyond my (current) skills.

I also thought of downgrading X to the version from Devuan Jessie, which apparently never signaled before it was actually ready for incoming connections. I'm trying the downgrade now but am quickly finding myself in dependency hell.

#346 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-30 14:51:50

Thanks, catprints. I did it just now and everything was checked.

So a recap of where I am at this point:
1. Tried using slim instead of lightdm, but problem recurred so I'm back on lightdm.
2. Uninstalled consolekit. Problem recurred afterwards but I'm leaving consolekit uninstalled since it seems superfluous.
3. Ran pam-auth-update as root. Everything is checked in the prompt.
4. Did full system upgrade again this morning.

I'll update the thread when I have something new to share.

#347 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-30 12:46:41

No luck. Problem struck again first boot this morning. Uninstalling consolekit was not the answer.

#348 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-30 04:06:44

fsmithred and golinux, thank you both very much. Based on the simple word or in fsmithred's post and golinux's link, I realized that I don't need both consolekit and elogind.

I tried uninstalling elogind (to simulate the package lineup in my problem-free Devuan Jessie partition) but doing so would force the removal of a truckload of packages including most of MATE. Therefore, I uninstalled consolekit. So far no negative consequences and I've booted my system 20 times for testing without any "hung" boots so far (using lightdm from ascii's repo). Fingers crossed...

fsmithred, is it possible that the intermittent nature of my issue was because of a race condition between elogind and consolekit?

#349 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-30 03:12:25

Hi, fsmithred. Thanks for piping in. All these packages are installed on my ASCII partition:

Packages with 'libpolkit' in name:
libpolkit-agent-1-0:amd64 0.105-18+devuan2.4
libpolkit-backend-1-0-elogind:amd64 0.105-18+devuan2.4
libpolkit-gobject-1-0-elogind:amd64 0.105-18+devuan2.4
libpolkit-qt-1-1:amd64 0.112.0-5
libpolkit-qt5-1-1:amd64 0.112.0-5

Packages with 'consolekit' in name:
consolekit 0.4.6-6

Packages with 'elogind' in name:
elogind 234.4-1+devuan1.5
libelogind0:amd64 234.4-1+devuan1.5
libpam-elogind:amd64 234.4-1+devuan1.5
libpolkit-backend-1-0-elogind:amd64 0.105-18+devuan2.4
libpolkit-gobject-1-0-elogind:amd64 0.105-18+devuan2.4

I honestly know very little about these packages, so don't know why these particular ones are installed.

These are the only packages on my Devuan Jessie partition, which always boots reliably:

Packages with 'libpolkit' in name:
libpolkit-agent-1-0:amd64 0.105-9+devuan1
libpolkit-backend-1-0:amd64 0.105-9+devuan1
libpolkit-gobject-1-0:amd64 0.105-9+devuan1
libpolkit-qt-1-1 0.103.0-1

Packages with 'consolekit' in name:
consolekit 0.4.6-5

Packages with 'elogind' in name:
none

#350 Re: Hardware & System Configuration » occasional boot hang on ascii [SOLVED] » 2018-03-29 21:11:38

Problem recurred with slim. Darn. I guess lightdm is innocent.

I'll try the other things but am running out of hope of nailing down this issue.

Board footer

Forum Software