Re: [gentoo-user] hibernate... /bin/echo: write error: No such device
On Wed, 27 Jul 2022 17:53:08 -0400, Walter Dnes wrote: > One of the last few items on the laptop setup. I emerged hibernate > and copied over the /etc/hibernate/ directory from my desktop. When I > try to hibernate the laptop, I get... > > [thimk][root][~] hibernate > /bin/echo: write error: No such device > > ...with a beep, and the machine comes back. Grepping for the "echo" > command, I get... > > [thimk][root][~] grep -r echo /etc/hibernate/ > /etc/hibernate/common.conf:# OnSuspend 20 echo "Good night!" > /etc/hibernate/common.conf:# OnResume 20 echo "Good morning!" It's not coming from the config file because that isn't using the full path, and these echo commands are commented out anyway. I suspect one the modules hibernate calls is the culprit, possible the last one mentioned in the logs. If the hibernate package is al scripts, I don't use it myself, you could grep them to see what is calling /bin/echo and where it is redirecting the output. A missing device like this could be down to a missing kernel config item, or a module not loaded. -- Neil Bothwick I'm not a complete idiot - several parts are missing. pgpRbWj8KkthW.pgp Description: OpenPGP digital signature
Re: [gentoo-user] hibernate... /bin/echo: write error: No such device
On Thu, Jul 28, 2022 at 08:57:35AM +1000, Adam Carter wrote > On Thu, Jul 28, 2022 at 7:53 AM Walter Dnes wrote: > > > One of the last few items on the laptop setup. I emerged hibernate > > and copied over the /etc/hibernate/ directory from my desktop. When I > > try to hibernate the laptop, I get... > > > > [thimk][root][~] hibernate > > /bin/echo: write error: No such device > > > > Is the device there? I get the exact same diagnostic output as you. My interpretation is not about the existance of "/bin/echo". I wonder if a script says something like... /bin/echo "something" > /sys/fubar ...and /sys/fubar is missing. The error message is not helpful. -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] hibernate... /bin/echo: write error: No such device
On Thu, Jul 28, 2022 at 7:53 AM Walter Dnes wrote: > One of the last few items on the laptop setup. I emerged hibernate > and copied over the /etc/hibernate/ directory from my desktop. When I > try to hibernate the laptop, I get... > > [thimk][root][~] hibernate > /bin/echo: write error: No such device > Is the device there? FYI, $ ls -l /bin/echo -rwxr-xr-x 1 root root 51256 May 5 11:58 /bin/echo* $ file /bin/echo /bin/echo: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped $ qfile /bin/echo sys-apps/coreutils: /bin/echo echo is also a bash built in, but that wont be used since you're calling echo with the full path
[gentoo-user] hibernate... /bin/echo: write error: No such device
One of the last few items on the laptop setup. I emerged hibernate and copied over the /etc/hibernate/ directory from my desktop. When I try to hibernate the laptop, I get... [thimk][root][~] hibernate /bin/echo: write error: No such device ...with a beep, and the machine comes back. Grepping for the "echo" command, I get... [thimk][root][~] grep -r echo /etc/hibernate/ /etc/hibernate/common.conf:# OnSuspend 20 echo "Good night!" /etc/hibernate/common.conf:# OnResume 20 echo "Good morning!" The latest entries in /var/log/hibernate.log are... Starting suspend at Wed Jul 27 05:00:47 PM EDT 2022 hibernate: [01] Executing CheckLastResume ... hibernate: [01] Executing CheckRunlevel ... hibernate: [01] Executing LockFileGet ... hibernate: [01] Executing NewKernelFileCheck ... hibernate: [10] Executing EnsureSysfsPowerStateCapable ... hibernate: [11] Executing XHacksSuspendHook1 ... hibernate: [59] Executing RemountXFSBootRO ... hibernate: [89] Executing SaveKernelModprobe ... hibernate: [91] Executing ModulesUnloadBlacklist ... hibernate: [95] Executing XHacksSuspendHook2 ... hibernate: [98] Executing CheckRunlevel ... hibernate: [99] Executing DoSysfsPowerStateSuspend ... hibernate: Activating sysfs power state disk ... hibernate: [90] Executing ModulesLoad ... hibernate: [89] Executing RestoreKernelModprobe ... hibernate: [85] Executing XHacksResumeHook2 ... hibernate: [70] Executing ClockRestore ... hibernate: [59] Executing RemountXFSBootRW ... hibernate: [11] Executing XHacksResumeHook1 ... hibernate: [01] Executing NoteLastResume ... hibernate: [01] Executing LockFilePut ... Resumed at Wed Jul 27 05:00:50 PM EDT 2022 -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] grub-install: error: cannot find EFI directory [RESOLVED]
On Wed, 27 Jul 2022 at 15:24, n952162 wrote: > Well, I discovered that this works: > > grub-install --target=i386-pc /dev/sda > > Although that is an UNDOCUMENTED option! It's dropped from the --help menu. > > I found it in the --help on an old system. > > Amazing how these things just disappear. It shows both in --help and in the man page for my up-to-date grub. Regards, Arve
Re: [gentoo-user] grub-install: error: cannot find EFI directory [RESOLVED]
On 7/27/22 14:33, n952162 wrote: Hello all, has the default been changed from BIOS to EFI? Do I have to, e.g. set the platform USE flag and reinstall the humongous grub package or is there an option I can pass to grub-install? Well, I discovered that this works: *grub-install --target=i386-pc /dev/sda* Although that is an UNDOCUMENTED option! It's dropped from the --help menu. I found it in the --help on an old system. Amazing how these things just disappear.
Re: [gentoo-user] grub-install: error: cannot find EFI directory
On 7/27/22 14:33, n952162 wrote: Hello all, has the default been changed from BIOS to EFI? Do I have to, e.g. set the platform USE flag and reinstall the humongous grub package or is there an option I can pass to grub-install? I see I have this: CONFIG_EFI=y CONFIG_EFI_STUB=y CONFIG_EFI_MIXED=y ... or will I have to rebuild my kernel? Surely genkernel would have determined that I have a BIOS system wouldn't it have?
[gentoo-user] grub-install: error: cannot find EFI directory
Hello all, has the default been changed from BIOS to EFI? Do I have to, e.g. set the platform USE flag and reinstall the humongous grub package or is there an option I can pass to grub-install?
Re: [gentoo-user] glabel - compatible thermal label printer
On 26/07/2022 16:06, the...@sys-concept.com wrote: Is anybody using "glabel"? I'm looking for compatible thermal label printer that will works on Linux; and easy to install printer driver. My overlay provides the latest Qt version. https://github.com/Tatsh/tatsh-overlay/tree/master/app-office/glabels This really depends on what you want to do. Most templates in gLabels are for printing on 8.5x11 or A4, but there are a number of Dymo templates as well. Dymo does officially support Linux and Gentoo has net-print/dymo-cups-drivers. OpenPGP_signature Description: OpenPGP digital signature