Sunday, June 26, 2022

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Linux on old hppa c3000, dvd ide found..but not avaliable

Posted: 26 Jun 2022 07:48 AM PDT

I run Debian SID on HPPA C3000, a very old workstation from HP. I have this problem, the ide cd-drom drive seems to be recognized, but no device created. The dvd is recognized:

dmesg |grep -i dvd  [   34.066904] ata1.00: ATAPI: ATAPI   DVD+RW 4X4X12, B1GY, max UDMA/33  

but no device is created!

cdrecord -scanbus  wodim: No such file or directory.   Cannot open SCSI driver!  For possible targets try 'wodim --devices' or 'wodim -scanbus'.  For possible transport specifiers try 'wodim dev=help'.  For IDE/ATAPI devices configuration, see the file README.ATAPI.setup from  the wodim documentation.    lsblk   NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS  sda                         8:0    0 33.9G  0 disk   ├─sda1                      8:1    0   47M  0 part   ├─sda2                      8:2    0  238M  0 part /boot  ├─sda3                      8:3    0    1K  0 part   └─sda5                      8:5    0 33.6G  0 part     ├─virtualehp--vg-root   254:0    0 19.3G  0 lvm  /    ├─virtualehp--vg-swap_1 254:1    0  7.6G  0 lvm  [SWAP]    └─virtualehp--vg-home   254:2    0 26.7G  0 lvm  /home  sdb                         8:16   0 33.9G  0 disk   └─sdb1                      8:17   0 33.9G  0 part     ├─virtualehp--vg-root   254:0    0 19.3G  0 lvm  /    └─virtualehp--vg-home   254:2    0 26.7G  0 lvm  /home  

I try to modbprobe pata_legacy and machine go to kernel panic.

How to provide grep a file with ip addresses to look for in access.log

Posted: 26 Jun 2022 07:50 AM PDT

Situation

I have a file where each line has an IP address and I want to see if these Ip's are found in access.log

File name: IpAddressess

Contents example :

192.168.0.1  192.168.0.2  192.168.1.5  etc etc  

Now I want to scan access.log for these IP addresses contained in the file IpAddressess

Can I use the command grep for this and what would the command structure look like?

Thank you kindly for any assistance!

Make os-prober only scan specific drives

Posted: 26 Jun 2022 07:27 AM PDT

On my computer, I have two drives:

  • /dev/sda
  • /dev/sdb

I want to make it so that os-prober will only scan /dev/sdb and NOT /dev/sda. How could I make it do that? My bootloader is grub.

Touchpad stopped working after hibernate on Thinkpad X1 Carbon 2nd Gen

Posted: 26 Jun 2022 07:08 AM PDT

So whenever the laptop goes into hibernate the trackpad will stop working. If I restart or shut down it will come back.

I have seen a number of posts about this, like this one: Touchpad stopped working after hibernate on Thinkpad X1 Carbon

In the answer, they said they have changed suspend from "S3 Linux" to "Windows/Linux", in the BIOS and the touchpad seems to be working just fine after a wakeup.

Is someone able to advise how I'd go about changing this, please?

System info: X1 Carbon 2nd Gen Ubuntu 20.04.4LTS 64bit GNOME 3.36.8 Windowing System X11

Pro-Gaming With GNU

Posted: 26 Jun 2022 07:04 AM PDT

I am looking for tips on enhancing the operating system, which is GNU,

by modifying the kernel, which is linux,

to get extreme gaming performance.

I have done a lot of research over the years on this subject matter

and have a pretty good setup right now.

GNU, is the fastest operating system for gaming right now in 2022,

and is lightning fast with modern hardware, so much so that I can

interact with the game world faster than all other players,

and it even looks like I'm using hacks, when really,

I'm just using my hardware like it's meant to be used,

with my GNU operating system of course, which is designed

to allow me to actually use my computer, instead of my computer using me.

The bottleneck for performance I mainly have right now, after having

optimized my operating system, GNU, to it's maximum capabilities,

is the kernel, which is linux.

I have started researching the kernel, and it's potential

to be optimized for maximum throughput to my hardware,

so I can get extremely good performance, generally,

and also for gaming, but

I can't seem to find any information

on optimizing the kernel for gaming, since everyone is

actually just talking about GNU, in reality.

So my question is... (and given a generic linux kernel)

What are some options for optimizing the kernel to allow maximum throughput/performance for gaming?

Network Manager is Not Sending Notification When Connecting to VPN Server in MX Linux

Posted: 26 Jun 2022 06:28 AM PDT

I am using MX Linux 21 XFCE pretty much unchanged from stock. I manually create VPN connections in Network Manager using Openvpn. Its been pretty much trouble free for the most part.

One day I was suddenly not receiving network connection notifications when connecting to either ethernet or wifi and also when connecting to a VPN server (which I do manually). I did not choose "don't show this again!"

I asked on the MX forum and they told me how to turn nm-applet back on on using the MX Settings GUI. Normally I would have used dconf, but that is not an option in MX.

After turning notifications back on, I marked the request solved because I thought it was fixed. And it was partially. I got notified when connecting to the eth0 or wan0 but not when connecting to a VPN server like I used to.

Given the circumstances I assume that a plug-in configuration file (perhaps for OpenVPN?) did not get the message to turn notifications back on. Does anybody know the following:

  1. How to fix this? OR

  2. How to find out what plugins are in Network Manager and where they keep their configuration files.

Goggling for two hours found lots of interesting network problems but nothing about notifications except how to turn them on and off the usual way and nothing about notifications for VPN connections.

P.S. I do confirm that the VPN connections are working after connection using {$ nmcli con show --active}. I have not had any problem with VPN connections except when using the VPN provider's software. Works perfectly using Openvpn except for the sudden loss of notifications for no apparent reason.

Dualboot : Install Win10 alongside Debian, not the opposite

Posted: 26 Jun 2022 06:17 AM PDT

I have Linux Debian installed on my laptop for some years (HDD0, sda). I just added a 2nd hard drive that holds Win10 (HDD1, sdb)

I would like to setup a dualboot with these 2 OS.

I found tons of tutos to implement dualboots but they seem to apply when Windows is installed first then linux in a second step; and I'm not a GRUB specialist...

I can access Win10 hard drive and browse within the file system from Linux.

I tried sudo grub-install -> no sucess

I tried os-prober -> return is empty

If I change the boot options in the BIOS, in order to boot Win10/HDD1 first, instead of Debian/HDD0, it does not work : Win10 is skiped and Debian is launched. I guess win10 is not well recognized as a bootable OS...

Can any body help me to fix this issue and setup the dualboot ?

Thanks Cez

Change color of title bar in Konsole terminal emulator

Posted: 26 Jun 2022 06:11 AM PDT

I'm using Konsole terminal emulator in Debian bullseye.
And with the default color setting, I think the active tab is not distinguishable, so, I want to change the color of active tab to other color like red.(like terminator)
I've added "user-defined stylesheet" like below.

QTabBar,  QTabBar::tab  {      font-family: "Noto Sans";      font-size: 11px;      height: 16px;      padding: 2px;      border: 0px;      border-bottom: 3px solid palette(dark);      background-color: palette(dark);      color: palette(text);  }    QTabBar::tab:hover  {      text-decoration: underline;  }    QTabBar::tab:selected  {      color: yellow;      font-weight: bold;      border-top: 3px solid red;  }  

But it's still showing default grey colored tab bar.
Anything I missed to configure? Or some other configuration is overwriting this?

Thanks in advance.

Shouldn't we say Gnu stack exchange not linux or unix [migrated]

Posted: 26 Jun 2022 05:47 AM PDT

Shouldn't we call this the Gnu stack exchange

and not call it the linux or unix stack exchange...

We aren't here to ask questions or talk about the kernel

We are here talking about the gigantic suite of free programs

designed to allow people to use computers, and interact with computers

with ethical applications, that aren't inherently deceptive.

It should be seen as the ultimate irony, that linux, is the

common name, but for something completely different, Gnu

which is the basis of "linux" computing in reality, whereas

the kernel is really small in comparison. It's more like a suite

of drivers that your real, gnu based software utilizes in order

to provide us with a complete operating system.

It might seem trivial of course, it's the commonly used term

to call it linux, and they both work together regardless

along similar lines to achieve a similar goal,

but I think it's more important to use language that

is in the first place, honest, and directly related

to the significant information in the first place.

I've been starting to study computer science more frequently,

and have found throughout the programmatic world, a kind

of systematic misappropriation of language to describe

all sorts of concepts, which then makes it much more difficult

to understand more complex subject matter.

I think that fundamentally the ethics of this operating system we all use,

are absolutely a part of it's programming, and that that is extremely

important to emphasize.

How to emulate usb-mtp device with virt-manager?

Posted: 26 Jun 2022 05:01 AM PDT

I am trying to emulate an mtp device with virt-manager. I see at https://qemu-project.gitlab.io/qemu/system/devices/usb.html that usb-mtp,rootdir=dir as in -device usb-mtp,rootdir=dir could be used to do this with qemu. How can I configure virt-manager to do this (custom xml welcome)?

how to detect memory leak in linux kernel due to slab leak

Posted: 26 Jun 2022 04:58 AM PDT

How to observe any memory leak in linux kernel due to any slab leaking? I just wanted to analyse how memory leak is detected due to increase in size of the active objects in one of the slabs in /proc/slabinfo. Can anyone explain with any sample driver example on how kernel detect memory leak due to slab leakage. Also which slabs or component need to be taken care of while observing memory leak in kernel in /proc/meminfo and /proc/slabinfo

How to Change Default Boot Kernel of Pop OS 20.04

Posted: 26 Jun 2022 04:36 AM PDT

I use Pop OS 20.04 and recently the kernel was upgraded and it caused some issues so I had to switch back to my previous kernel version. (More specifically, the kernel was upgraded to v5.16, and I had to revert back to v5.15 due to issues with some old versions of ElasticSearch).

As you might know, Pop OS uses systemd-boot, and a few months ago I used the systemd boot-menu to select the old-kernel as the default boot option. All was fine again, until a few days ago I noticed that the system was booted with kernel v5.16! I double checked the systemd boot-menu and it was still set to boot with the old kernel option! My guess is that the old kernel option was upgraded and switched to v5.16 which is not desirable!

Unfortunately in contrast to grub, it seems that systemd-boot tries to over-simplify things and doesn't show explicit kernel versions to select from!

So I searched for other options to change the default boot kernel and all I found was this article. So I used the following command to change my default kernel option:

me@pop-os:~$ sudo kernelstub -v -l -k /boot/vmlinuz-5.15.23-76051523-generic -i /boot/initrd.img-5.15.23-76051523-generic  kernelstub.Config    : INFO     Looking for configuration...  kernelstub           : INFO     System information:         OS:..................Pop!_OS 20.04      Root partition:....../dev/sda3      ESP Path:............/boot/efi      ESP Partition:......./dev/sda1      ESP Partition #:.....1      NVRAM entry #:.......-1      Boot Variable #:.....0000      Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash      Kernel Image Path:.../boot/vmlinuz-5.15.23-76051523-generic      Initrd Image Path:.../boot/initrd.img-5.15.23-76051523-generic      Force-overwrite:.....False    kernelstub.Installer : INFO     Copying Kernel into ESP  kernelstub.Installer : INFO     Copying initrd.img into ESP  kernelstub.Installer : INFO     Setting up loader.conf configuration  kernelstub.Installer : INFO     Making entry file for Pop!_OS  kernelstub.Installer : INFO     Backing up old kernel  kernelstub.Installer : INFO     Making entry file for Pop!_OS    me@pop-os:~$ echo $?  0  

As you can see from above, the command runs successfully with exit code 0; but it doesn't take effect! When I double check the output from kernelstub it's still the same as before!

me@pop-os:~$ sudo kernelstub -p  kernelstub.Config    : INFO     Looking for configuration...  kernelstub           : INFO     System information:         OS:..................Pop!_OS 20.04      Root partition:....../dev/sda3      ESP Path:............/boot/efi      ESP Partition:......./dev/sda1      ESP Partition #:.....1      NVRAM entry #:.......-1      Boot Variable #:.....0000      Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash      Kernel Image Path:.../boot/vmlinuz-5.17.5-76051705-generic      Initrd Image Path:.../boot/initrd.img-5.17.5-76051705-generic      Force-overwrite:.....False    kernelstub           : INFO     Configuration details:        ESP Location:................../boot/efi     Management Mode:...............True     Install Loader configuration:..True     Configuration version:.........3  

Here are the kernels I have installed on my system:

me@pop-os:~$ dpkg --list | grep linux-image | grep ii  ii  linux-image-5.15.23-76051523-generic  Linux kernel image for version 5.15.23 on 64 bit x86 SMP  ii  linux-image-5.16.19-76051619-generic  Linux kernel image for version 5.16.19 on 64 bit x86 SMP  ii  linux-image-5.17.5-76051705-generic   Linux kernel image for version 5.17.5 on 64 bit x86 SMP  ii  linux-image-generic                   Generic Linux kernel image  

How can I fix this? I want to set the default boot kernel to be v5.15 and not change anymore.

is there any way to transfer file in Ascii mode using ftp or sftp

Posted: 26 Jun 2022 04:27 AM PDT

We have a server and we need to transfer file in Ascii mode.

While transferring : when we use "ftp" command getting below error

Error: 530 Log on attempt by user rejected  (530 Secure connection required)    or     Error: 530 Not logged in. Username/password incorrect, user disabled, or user logged in too many times  

Password is correct as i am able to login using sftp but in sftp not sure how to transfer in ascii mode. Any suggestion pls

Pls suggest if there is any reference link to refer

Are Superblock and Master File Tables the same thing?

Posted: 26 Jun 2022 03:46 AM PDT

What is the difference between a superblock and a Master File Table (MFT)? Both seem to be tables that keep track of files within a filesystem, but are there other differences? The only difference I found was that the first is used for Ext4 filesystems and the other for NTFS filesystems, but are there any others?

Debian - Create new partition with fdisk and set size ( Last sector )

Posted: 26 Jun 2022 03:04 AM PDT

please could someone help me with my problem of create new disk partition in Debian ?

I'am using Proxmox where I have created a few virtual machines.

On one of virtual machines where have installed Linux - Debian I have problem with enough free disk space.

So I decied that I created new partion on disk just for backup files.

Step 1.

I resized disk in Proxmox from 100GB to 250GB

Step 2.

I logged in to the Debian where I would want to create new partition for storage backup files . Partition shoud have 70GB

Step 3.

I run fdisk to create new partition + I'am attaching screenshot (create-new-partion-fdisk.jpg ) where I mark up few command and option that I select, but I have problem that I can't set size of partition to 70GB (+70G). I when i try it set value "+70G" for "Last Selector" question I get Error "Value out of range"

enter image description here


Please could you help me how I can achieve this the most easy way ? I don't have such experience with Debian so if some kind soul would help me I would be glad for that ! Specific commands would be extremely halpful

Thank you !

How to apply udev rule to a non-partitioned local disk?

Posted: 26 Jun 2022 03:23 AM PDT

I've made this config in udev:

KERNEL=="sdd", SYMLINK+="QUORUML", OWNER="test", GROUP="gtest", MODE="0660"  KERNEL=="sde", SYMLINK+="QUORUMR", OWNER="test", GROUP="gtest", MODE="0660"  

and after, I've added other disk and the new disk became the /dev/sde and the old /dev/sde became /dev/sdf, so the udev rule above became wrong since the name of sde has changed to sdf. How can I insure the correct disk? is there some other id? I've tried something like blkid, but since there is no partition it don't return any id.

[root@dbnode1 rules.d]# blkid /dev/sdd  [root@dbnode1 rules.d]#  

I look for something like when there is iscsi disks, we can do it using iscsi id:

KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="360014054187384e668f45e58d036f19a", SYMLINK+="disk4", OWNER="xxxx", GROUP="xxxx", MODE="0660"  

su: cannot set user id: Invalid argument

Posted: 26 Jun 2022 06:00 AM PDT

I'm trying to create a new user and enter into it, under my Linux SUSE SLSE12 machine. I'm root on that machine. The set of commands:

> whoami  root  > useradd -u 123456 new_user  > id new_user  uid=123456(new_user) gid=100(users)  > su new_user  su: cannot set user id: Invalid argument  

What is the problem with su? Why can't I switch to new_user? I tried su - new_user as well and got the same result. I also set a password to new_user using the passwd command but it still didn't work. How to solve it?

unlock gnome-keyring on login

Posted: 26 Jun 2022 05:59 AM PDT

Running debian testing, no display manager, i3 window manager. gnome-keyring & libpam-gnome-keyring packages are installed. Added following 2 lines to end of /etc/pam.d/login:

auth       optional     pam_gnome_keyring.so  session    optional     pam_gnome_keyring.so auto_start  

keyring is started by systemd @ /etc/systemd/user/graphical-session-pre.target.wants/gnome-keyring-daemon.service, but also tried replacing it from xinitrc:

eval $(/usr/bin/gnome-keyring-daemon --replace --components=gpg,pkcs11,secrets,ssh)  

/var/log/auth.log has following from OS login:

Jun 26 00:35:39 p14s su[1409]: (to laur) root on none  Jun 26 00:35:39 p14s su[1409]: pam_unix(su:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:39 p14s systemd: pam_unix(systemd-user:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:39 p14s su[1409]: pam_unix(su:session): session closed for user laur  Jun 26 00:35:41 p14s su[1922]: (to laur) root on none  Jun 26 00:35:41 p14s su[1922]: pam_unix(su:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:42 p14s su[1922]: pam_unix(su:session): session closed for user laur  Jun 26 00:35:42 p14s su[2005]: (to laur) root on none  Jun 26 00:35:42 p14s su[2005]: pam_unix(su:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:42 p14s login[1174]: gkr-pam: unable to locate daemon control file  Jun 26 00:35:42 p14s login[1174]: gkr-pam: stashed password to try later in open session  Jun 26 00:35:42 p14s login[1174]: pam_unix(login:session): session opened for user laur(uid=1000) by LOGIN(uid=0)  Jun 26 00:35:42 p14s systemd-logind[1003]: New session 2 of user laur.  Jun 26 00:35:42 p14s login[1174]: gkr-pam: unlocked login keyring <----- this should be success, right?  Jun 26 00:35:42 p14s su[2005]: pam_unix(su:session): session closed for user laur  Jun 26 00:35:42 p14s su[2078]: (to laur) root on none  Jun 26 00:35:42 p14s su[2078]: pam_unix(su:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:42 p14s su[2078]: pam_unix(su:session): session closed for user laur  Jun 26 00:35:45 p14s polkitd(authority=local): Registered Authentication Agent for unix-session:2 (system bus name :1.81 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)  Jun 26 00:35:46 p14s gnome-keyring-daemon[2026]: The Secret Service was already initialized  Jun 26 00:35:46 p14s gnome-keyring-daemon[3062]: discover_other_daemon: 1  Jun 26 00:35:48 p14s su[4284]: (to laur) root on none  Jun 26 00:35:48 p14s su[4284]: pam_unix(su-l:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:50 p14s su[4284]: pam_unix(su-l:session): session closed for user laur  Jun 26 00:35:50 p14s su[4365]: (to laur) root on none  Jun 26 00:35:50 p14s su[4365]: pam_unix(su-l:session): session opened for user laur(uid=1000) by (uid=0)  Jun 26 00:35:50 p14s su[4365]: pam_unix(su-l:session): session closed for user laur  Jun 26 00:35:50 p14s su[4402]: (to laur) root on none  Jun 26 00:35:50 p14s su[4402]: pam_unix(su-l:session): session opened for user laur(uid=1000) by (uid=0)  

Did also try deleting existing keyring(s), to be re-created. Keyring has same password as my user login.

Still no joy. How to approach this in 2022?

why I am not copy different directories to another different directories in linux [closed]

Posted: 26 Jun 2022 04:53 AM PDT

foreach dir (pavan pavan_kumar)  mkdir -p $ward/runs/$dir/1276.31/release/latest/caliber_waiver/$dir_waiver_db  cp -r  {/nfs/site/disks/ncsg_00518/pmuttinx/Caliber_GNRDA0_OTN_1p0_qc_route_opt_ww24a_cfg_22ww25.4/runs/$dir/1276.31/release/latest/caliber_waiver/$dir_waiver_db/*         $ward/runs/$dir/1276.31/release/latest/caliber_waiver/  end  

Allow all users to create files in directory, but only the owner of the file should have write/delete their own files

Posted: 26 Jun 2022 05:36 AM PDT

I would like to create a shared directory which should have write permissions for the particular group, but only the owner who creates the file should have write/delete on their own files.

For example,

mkdir /var/tmp/testdir  chown root:group1 /var/tmp/testdir  chmod 770 /var/tmp/testdir  

If user1 creates a file in the directory,

su - user1  touch testfile1  

Now, we don't want any other users to modify the file testfile1 which was created by user1. How to achieve this?

How can I create a per-application override for DXVK?

Posted: 26 Jun 2022 07:38 AM PDT

DXVK is an implementation of DirectX on Vulkan (the successor to OpenGL). According to this comment, you can specify per-application DLL overrides for DXVK in Wine. How can I have one install (a video game) which has two executables LaunchFoo.exe and Game.exe where only one of those executables uses DXVK?

Just use wined3d for the launcher with per-application DLL overrides.

How can I do that. Specifically for my work load, I would like LaucnhFoo.exe to NOT use DXVK (since it doesn't work). I would like everything else to use DXVK. If necessary, I can write the executables that I wish to use DXVK explicitly. That is to say, I can whitelist what I want to run under DXVK, but I prefer to blacklist what I do not want to run under DXVK.

Touchpad stopped working after hibernate on Thinkpad X1 Carbon

Posted: 26 Jun 2022 06:02 AM PDT

I've got a Thinkpad X1 Carbon Gen 9.

When I hibernate on Ubuntu 21.10 or Pop!_OS 21.10 or Manjaro, the touchpad either stops working after resume or the cursor moves very choppy. Both with Wayland and xorg. Kernel on Ubuntu 21.10: 5.13.0-22.22; Pop!OS: 5.15.5-76051505-generic; Manjaro - unsure. I'm using Gnome.

Looking for a way to fix this, so that the touchpad is fully working post-resume.

I tried reloading the kernel module with:

sudo rmmod psmouse; sleep 2; sudo modprobe psmouse  

I also tried dis-/enabling the xinput device:

xinput disable 'SYNA8008:00 06CB:CE58 Touchpad'; sleep 2; xinput enable 'SYNA8008:00 06CB:CE58 Touchpad'  

And I also tried removing/loading the i2c_hid kernel module per touchpad not working after hibernate. I doubt that this actually did anything, to be honest. I used "solution 2":

$ cat /etc/systemd/system/root-resume.service  [Unit]  Description=(un)load module i2c_hid when going to/from sleep  Before=sleep.target  StopWhenUnneeded=yes    [Service]  Type=oneshot  RemainAfterExit=yes  ExecStart=modprobe -r i2c_hid  ExecStop=modprobe i2c_hid    [Install]  WantedBy=sleep.target  

In syslog (Pop!_OS):

13269-Dec 29 17:15:11 a00c053 gnome-shell[107472]: Window manager warning: Overwriting existing binding of keysym 6f with keysym 6f (keycode 20).  13270:Dec 29 17:15:15 a00c053 systemd[1]: Starting (un)load module i2c_hid when going to/from sleep...  13271:Dec 29 17:15:15 a00c053 modprobe[178848]: modprobe: FATAL: Module i2c_hid is in use.  13272-Dec 29 17:15:15 a00c053 systemd[1]: root-resume.service: Main process exited, code=exited, status=1/FAILURE  13273-Dec 29 17:15:15 a00c053 systemd[1]: root-resume.service: Failed with result 'exit-code'.  13274:Dec 29 17:15:15 a00c053 systemd[1]: Failed to start (un)load module i2c_hid when going to/from sleep.  13275-Dec 29 17:15:15 a00c053 systemd[1]: Reached target Sleep.  13276-Dec 29 17:15:15 a00c053 systemd[1]: Starting Suspend...  13277-Dec 29 17:15:15 a00c053 systemd-sleep[178849]: Suspending system...  13278-Dec 29 17:15:15 a00c053 kernel: [16124.219516] PM: suspend entry (deep)  

No changes.

With xinput test 'SYNA8008:00 06CB:CE58 Touchpad' I can see, that there ARE signals received when I use the touchpad. Compared to pre-hibernate, there are A LOT less signals.

The "joystick" "mouse" always works. But I am not compatible with the knob ;)

Ubuntu / PopOS 21.04 - Screen blinking

Posted: 26 Jun 2022 03:23 AM PDT

I just bought a Fusion Serie from PCSpecialist and I'm having screen issue when running Ubuntu (tested 20.04 and 21.04) or PopOS (tested 21.04)

  • built-in screen display is blinking when the mouse cursor is moving within its display area using the touchpad or a mouse
  • if I press the left button while moving the cursor the display does not blink
  • when using an external monitor its display is fine, but not the integrated screen one (in duplicated or extended mode)
  • I recorded the screen and the video is not showing the blinks (although the screen was blinking while recording)

What I tried:

  • changing screens resolutions
  • enabling / disabling PopOS HiDPI daemon
  • use different kernels (from 5.11 to 5.14)

Here are the laptop specs:

  • Chassis & Display: Fusion Studio Series : Écran large LED mat 14 pouces 90 Hz sRGB 95 % WQXGA (2880 x 1800)
  • Processor (CPU): Processeur Quad Core Intel® Core® i7 11370H (3,3 GHz, 4,8 GHz Turbo)
  • Memory (RAM): 16 Go Corsair 2933 MHz SODIMM DDR4 (2 x 8 Go)
  • Graphics Card: Intel® Iris® Xe Graphics
  • 1st M.2 SSD Drive: 500 Go SAMSUNG 970 EVO PLUS M.2, PCIe NVMe

And some commands outputs (from PopOS 21.04):

uname -r  5.11.0-7633-generic    inxi -G  Graphics:  Device-1: Intel TigerLake GT2 [Iris Xe Graphics] driver: i915 v: kernel             Device-2: Chicony HD Webcam type: USB driver: uvcvideo             Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting             unloaded: fbdev,vesa resolution: 1: 1440x900~60Hz 2: 1920x1080~60Hz             OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.1    sudo lshw -c video  *-display                         description: VGA compatible controller         product: TigerLake GT2 [Iris Xe Graphics]         vendor: Intel Corporation         physical id: 2         bus info: pci@0000:00:02.0         logical name: /dev/fb0         version: 01         width: 64 bits         clock: 33MHz         capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb         configuration: depth=32 driver=i915 latency=0 mode=2880x1800 visual=truecolor xres=2880 yres=1800         resources: iomemory:600-5ff iomemory:400-3ff irq:153 memory:601c000000-601cffffff memory:4000000000-400fffffff ioport:3000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff    lspci -nnk | grep -iA2 VGA  00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)      DeviceName: Onboard - Video      Subsystem: Tongfang Hongkong Limited Iris Xe Graphics [1d05:1105]  

Full probe of my system: https://linux-hardware.org/?probe=9361e69812

I don't really know which potential fixes I should start with therefore any help will be greatly appreciated. Thanks

NOTE: I also have W10 installed along side PopOS and W10 is working fine.

Build the Linux kernel without gcc optimization

Posted: 26 Jun 2022 07:02 AM PDT

I follow one of many tutorials found on Google results to build and debug the Linux kernel with gcc and kgdb/gdb. And I end up by discovering that is all waste of time. Since I can't compile the kernel without gcc optimization -O0 neither -Og. There's no config option for removing optimization. And last but not leat, Linus said years ago that is against debugging.

Saying that kgdb must exist for some reason. I was wondering if there is a way to get rid of variables/arguments "optimized out" and let the debugger step through the code sequentially and not jumping from everywhere to everywhere?

OpenLdap - restore backup - slapcat/slapadd

Posted: 26 Jun 2022 06:05 AM PDT

Im using slapcat to make backup like this:

slapcat -n 1 > ${BACKUP_PATH}/ldap.domain.com.ldif  

Then import using slapadd:

slapadd -F /etc/ldap/slapd.d -n 1 -l ldap.domain.com.ldif  

I can't restore my backup this way because of the operational attributes.

I have errors for example:

structuralObjectClass: no user modification allowed  

It's possible to make a backup without operational attributes or import somehow with them?

Select greatest numbered filename

Posted: 26 Jun 2022 07:21 AM PDT

I have a list of dated files as below...

filename_20120101.dat  filename_20120102.dat  filename_20120103.dat  

I need a script which selects the most recent file based on the date in the filename (not the file's date stamp).

How do I route a spare network interface through an SSH tunnel?

Posted: 26 Jun 2022 04:07 AM PDT

I just bought a Raspberry Pi and I am wanting to route an ad hoc wireless network interface fully through an SSH tunnel that was created using another wireless interface. I want to do this so that I can have a secured and private connection to the internet at places with public WiFi. I know this would be easier to do all on one computer, but I would like to have it on the RPi too since I use it for other network related things when I am using the internet, and then just simply connect to the ad hoc network from my laptop/phone. This will really help me with my iPhone because it does not support an SSH tunnel locally. How should I go about doing this? Thanks in advance for all of your help.

No comments:

Post a Comment