[Bug 1883174] Re: Some desktop icons disappear
Just FYI for anyone that stumbles upon this thread. In Ubuntu 20.04, if you want to work around the issue for now it can be done by placing your preferred desktop files in the home (or any other) folder and just placing link files to those files on your desktop. When you do this you can still double click and edit files directly from the desktop, but when you save it doesn't lose or move around the desktop files. It even eliminates the flicker. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
OK, made more progress. First, I was finally able to reproduce the issue in the new account. For my initial test I just created 4 or 5 very small text files. On my regular desktop I have a much larger text file that is 39kb with 1100+ lines. The size of the file is what makes it break, which points to exactly what Andre mentions above. If you create a large text file on your desktop you should be able to see the issue yourself. I then proceeded with our test. I installed vanilla gnome, uninstalled the /usr version of desktop icons, and then rebooted. At login I selected a Gnome session for the new account. I then went through the meson/ninja procedure to install your patch version. The good news is it did install now and it does keep the icons from disappearing. The only sub-optimal part is that the icons don't stay in place and move around on the desktop each time you hit save. Still a big improvement, but ideally the icons wouldn't move around. Just a side note, while testing to break the other account I did also try an .ods file. It never did disappear, but has the same issue with not staying in the exact place where I positioned (i.e. on each save action it would jump around)... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
Sergio, So... I think I followed your last comment and did some more research.. If I can try to summarize briefly, what your saying is that to understand if your new patch works (which I believe is the goal so that ultimately it might be moved forward), we need to prove that it solves our issue. When using gnome 3.x on an Ubuntu system, by default you are given an "ubuntu session" where the folks at cannocial have packed together and tested as a bundle a few tweaks/extensions to vanilla gnome to simplify things for users and to promote their branding. For any extensions that I chose to add after that I have complete control to update and add/remove. For the standard few they included (which includes desktop icons) I don't have the ability to update or change them. Any updates would need to be pushed through by cannocial as bundle package updates. Alternatively, I need to do an install of the vanilla gnome packages (because gnome is not currently an option on the login screen), then chose that session type on login (along with setting everything up again). Given how much work I have done just to get my system mostly functional I am reluctant to change session types on my primary account, so I had an alternate idea of just creating a new, second user on the system and then making the changes there. Before I even started with installing vanilla gnome, I first created a new user and then logged in with it using a standard ubuntu session. I then setup my same few extensions and ran a test to prove I had the issue (so I could know for sure if/when it was fixed). Oddly, I can't get desktop icons to break in the new user account. It works fine after numerous tests. Its frustrating, but this leads me to believe that there is some form of conflict between desktop icons and the (literally) hundreds of this I have installed over time in my main account. It must be a common thing that many users of ubuntu install or configure because there do seem to be many people here with the same complaint. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
I am not sure I am following. To be clearer, I have multiple other extensions installed and they all work fine... specifically unite, walkpaper, user themes and workspace indicator. It is just the desktop icons one that I can't install or work with. I do already have gnome- shell-extensions installed... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
I rebooted multiple times and no luck. Here are the steps I followed : - Used sudo apt remove gnome-shell-extension-desktop-icons to uninstall - Deleted the folder $HOME/.local/share/gnome-shell/extensions/desktop- icons@csoriano - Rebooted and verified it is gone all together from tweaks - Downloaded the .zip patch file and placed in a local directory - Rerean the Meson/Ninja commands and verified that the .local folder was recreated (I did not get any errors) - Rebooted again. At this point I still do not have desktop icons as a choice at all in Tweaks -> extensions. If I go to the website (https://extensions.gnome.org/) then it is not listed in the installed extensions list. If I search for it and try to turn it on with the web page I get a message that says "Can't install "desktop-icons@csoriano" : This is an extension enabled by your current mode, you can't install manually any update in that session" So basically I am stuck with no option to turn it back on. I suspect I can just run sudo apt install and readd that way, but it will be the same /usr install.Am I missing something? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
Nevermind, I figured out its just sudo apt remove gnome-shell-extension- desktop-icons. I did that and its completely gone from /usr now. However, I no longer have the extension at all. I reran the steps to install the patch version and I don't see the extension, so I must be missing a step somewhere... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
How do you uninstall it properly? I enabled it through the https://extensions.gnome.org/ page, but there is not an uninstall option there. It does not show up as an installed .deb in ubuntu software, so I am assuming we need to do a sudo apt remove, but not sure what package is called -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
The editor I am using is just gedit 3.36.2, just fyi... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
I did not uninstall per say, I just deleted the .local directory as mentioned in the readme... i.e. Deleted the folder ($HOME/.local/share/gnome-shell/extensions /desktop-icons@csoriano) If there is a better way to clear and reinstall then let me know and I will be happy to try it out... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
Sure, it must be some sort of interaction or missing dependency because I get it every single time I save a file that is on the desktop. I reproduced the error then immediately pulled the tail of the log you proposed. I do see a javascript error related to this extension... Here is the full tail... (hard to read) Sep 30 09:25:03 iP4o20Kn gnome-shell[1611]: Failed to set CRTC gamma: drmModeCrtcSetGamma on CRTC 48 failed: Permission denied Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: GNOME Shell started at Wed Sep 30 2020 09:25:02 GMT-0400 (EDT) Sep 30 09:25:04 iP4o20Kn gnome-shell[3617]: Registering session with GDM Sep 30 09:25:18 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 5236: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 5236 does not exist. Sep 30 09:25:33 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 5312: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 5312 does not exist. Sep 30 09:25:35 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 5316: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 5316 does not exist. Sep 30 09:25:36 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 5320: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 5320 does not exist. Sep 30 09:26:06 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 5400: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 5400 does not exist. Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). Sep 30 09:26:08 iP4o20Kn gnome-shell[3617]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). Sep 30 09:26:18 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 6526: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 6526 does not exist. Sep 30 09:26:34 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 6527: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 6527 does not exist. Sep 30 09:26:41 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 6533: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 6533 does not exist. Sep 30 09:26:44 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 6538: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 6538 does not exist. Sep 30 09:26:45 iP4o20Kn gnome-shell[3617]: Could not create transient scope for PID 6539: GDBus.Error:org.freedesktop.DBus.Error.UnixProces
[Bug 1883174] Re: Some desktop icons disappear
@rastersoft-gmail Sergio, I went back through the merge request in more detail and have tried these steps : - Download the patch code from the merge request - Installed Meson - Deleted the folder ($HOME/.local/share/gnome-shell/extensions/desktop-icons@csoriano) - Unzipped the patch and built the patch with Meson/Ninja (it did recreate the local directory) - Rebooted - Went into tweaks and re-enabled the extension After all this I did not notice any change in behavior. The problem is very easy to replicate in Ubuntu 20.04. Just place a simple text file on the desktop. Double click to open it and then change the file. When you hit save it breaks/hides all the icons and you must reboot or hit ALT+F2 then R to fix. Let me know if I missed any steps or if there is anything else I can do to help with the investigation... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1883174] Re: Some desktop icons disappear
@rastersoft-gmail Sergio, what are the full steps involved in trying this patch? I tried to just download the new file desktopManager.js from your link and then replaced the file in the path "/usr/share/gnome-shell/extensions /desktop-icons@csoriano". I restarted and then I get an error in the extension saying it couldn't be loaded -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883174 Title: Some desktop icons disappear To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-desktop-icons/+bug/1883174/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi PowerKiKi, I had to reload my pc for another project, and after reloading I found that same lack of stickiness... Not wanting to go backwards, I felt I had to chase down the full fix. This should fix your issue (caused by pulse) if you want to skip the background audio file...I also improved the Daemon script to ensure later execution and added a second daemon to run the script on suspend/restore. With this setup I have not had to manually run the script in a week or so. Its like sound just works normally now... Fresh Install Setup Steps sudo apt-get install alsa-tools Rename alsa-base to bkup/etc/modprobe.d/alsa-base.conf placed TO912.sh script with verbs and set as 777 +x create and placed $ sudo chmod 664 /etc/systemd/system/ionsound.service [Unit] Description=Custom Sound [Service] Type=idle ExecStart=/home/ion420/Hoff/Linux_Files/Ion_Audio/TO912.sh [Install] WantedBy=multi-user.target create and placed $ sudo chmod 664 /etc/systemd/system/ionsoundsleep.service [Unit] Description=Custom Sound Sleep Fix [Service] Type=idle ExecStart=/home/ion420/Hoff/Linux_Files/Ion_Audio/TO912.sh [Install] WantedBy=suspend.target activate sudo systemctl daemon-reload sudo systemctl enable ionsound.service sudo systemctl enable ionsoundsleep.service turn off pulse idle sudo gedit /etc/pulse/default.pa Add comments to ### load-module module-suspend-on-idle verify script runs at boot and sound works .. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@kasper93 That is great news, sounds like the same fix will work for multiple models then! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@kasper93 That is good to know. Makes sense that the CORB values might differ somewhat. The ION has the AKG smart amp and dolby what not, so my CORB sequence is likely tuned for that combination of items. It actually sounds really good for a laptop. I think there may already be a fix out there for the metallic sound issue. I never had it on my system, but remember reading about it on other setups. If nothing else, we know the procedure recommend by Mike works and you could just capture the CORB values (with a decent amount of effort) on each different system. I am not sure what the samsung settings thingy is, but that sounds like it could be very helpful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@ironincoder I highlighted the 0x20 block just to explain how the data is structured. You need to run the full script (TO912.sh) with all 358 verbs to hear sound. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi That is very odd, mine lasts for hours and hours. I wouldn't think ubuntu and xbuntu would be that different with regard to audio hardware mgmt, but one guess off the top of my head is that before I found this thread I turned off power mgmt for snd_hda_intel to try to get the headphone verb to be sticky. Obviously this will increase power usage some, but I have not noticed any difference in battery life. If you want to try it, here are the steps I tried (it can be reversed easily if it doesn't help)... 1) Go to folder /sys/module/snd_hda_intel/parameters/ 2) modify 2 files sudo gedit power_save change 1 to 0 sudo gedit power_save_controller change Y to N 3) If you still have an alsa-base file (Mike had me delete mine with his patch), you can add these lines too... sudo gedit /etc/modprobe.d/alsa-base.conf Add options snd-hda-intel power_save=0 options snd-hda-intel power_save_controller=N -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi @terrymagnusdrever @gannon1 Just to document this for anyone else that might benefit, attached is the final script I created. I reduced the previous list further from 788 to 358 verbs. There may be a few extra ones left, but probably not many based on my testing, as removing more tends to lose one speaker or not generate enough volume or other weird unexpected side effects. Its definitely a long sequence of blocks of data that is critical as opposed to one or two single statements. Anyway this smaller list appears to achieve the original goal. If anyone ever wants to reduce further, the data is broken into many blocks that look something like this (where the row right after the one that ends with 0x23 appears to be most important - so in this case its one of the 0x20 blocks): sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x26 sudo hda-verb /dev/snd/hwC0D0 0x20 0xc00 0x0 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x23 sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x20 sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x0 sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0xc0 sudo hda-verb /dev/snd/hwC0D0 0x20 0x4b0 0x11 Once you learn to work with the data as blocks it gets a lot easier to sort. Anyway, as far as what to do with this script I was not able to make a kernel patch that worked (maybe Mike can) and I was not able to get early patching to work (which could be me because I have never had any success with early patching). Originally I was just running the script manually at boot, but I found that just creating a simple systemd daemon does the trick (steps below). Now when I boot I have full sound and it seems to last for a while. What was most unexpected was that I also added back the single HDA verb for the headphones (which I specifically tried and found did not work before as a stand alone daemon) and now my headphones work along with the speakers WITHOUT using the custom kernel patch that Mike created. Bizarre, but whatever works. Since my last script worked for PowerKiKi I feel confident this will work for most Ion owners, but there is nothing in the script that is truly specific to the Ion laptop. The Samsung Flex was released on the same day and appears to have the same audio hardware, so likely this works for flex users too. It may also work for pro or always users, I am just not as sure on the hardware on those. Steps to create daemon 1) Place the verb script in whatever location you prefer (it needs to stay in one spot) 2) Make the permissions on the script file 777 and +x 3) Create a new daemon file named /etc/systemd/system/ionsound.service 4) Place this text in your new daemon file [Unit] After=network.service [Service] ExecStart={full path to where you placed the file}/TO912.sh [Install] WantedBy=default.target 5) Update the daemon file permissions to 664 sudo chmod 664 /etc/systemd/system/ionsound.service 6) Activate the daemon sudo systemctl daemon-reload sudo systemctl enable ionsound.service 7) Reboot and you should have sound ** Attachment added: "TO912 file" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5410529/+files/TO912.sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi Yes, this is just a temporary step until I finish minimizing the verbs. I was hoping it would be as easy as just finding the single command or two in the group of 788, but it appears to be a longer combination of sequences, so will take just a bit more tinkering to isolate. I will get it sorted and then we can ask Mike to add it as part of his patch. I didn't test with bluetooth headphones (I still use old school wired ones), but bluetooth is a completely different pathway and bluetooth audio has always worked on mine from the very start. I am able to go between regular headphones and the speakers now and pulse changes the source automatically back and forth, so for me at least, it is not as bad as the original stickiness problem. Pretty much once I boot and run the script it lasts until I reboot. As you suggest, we can hopefully even eliminate that step once Mike adds to a patch... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 @PowerKiKi Mike, I never heard back from Jaroslav (I suspect he is pretty busy), and my consulting work is very slow with the pandemic so I just continued to work on it. Your concept is spot on. Thank you for all the wisdom and thoughtful guidance. I am happy to report, after much more effort than I care to admit, that step 1 has been successfully achieved and I have stereo sound through my laptop speakers... finally! Once you get through all the numerous setup pitfalls, it seems (a bit of an assumption on my part) like the big gotcha is that the windows driver appears to instantaneously turn off the speakers when not in use (i.e. if you record a large time period like booting or disabling and enabling devices then the speakers start and end in off mode and you never catch it). It took numerous attempts to catch the right segments. Anyway, I have begun working on step 2 now. I stared with >2000 verbs and am down to what seems to be a consistent 788. I am confident there are more to eliminate because it turns on the left speaker (alone) then turns on the right speaker (alone), then (most importantly) ends with stereo. For at least the galaxy book ion (likely will work for others too), I should be able to provide an optimized result soonish. PowerKiKi, even with the Xbuntu difference, I feel confident what I have now will at least work for you since you have the same Ion hardware. The sound is actually pretty good on these laptops (I never heard it before today because I wiped windows on day 1 :) If you would like to give it a shot, just run the attached script. I use it on top of running a custom kernel that includes Mike's headphone patch and I have full sound on speakers and headphones during the entire session. Once I minimize the verbs I will try creating a custom kernel with the final verbs (I have skipped that for now because the hda verbs work fine and each attempt at a custom kernel is about an hour journey..) ** Attachment added: "ION Sound Script" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5407530/+files/TO93.sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Sure. I found I am not getting the consistent output from the new logging that I expected, so I want to try a couple of things this weekend to understand it better. Then I will type up a brief summary and post it in the other thread... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Mike, after reading more on the patch links you sent me before, it occurred to me I might have an easier way to test the 944 while you create the proper patch. Namely, I followed the same procedure as before with the headphone patch, but right before I made the new custom kernel I just added the new candidate CORB values to the new patch_realtek.c file in my new custom header... so basically just modified the samsung headphone very quiet fixup (partial sample below). While not a proper solution, I figured it might work for testing. Unfortunately, even after rebuilding, etc, I still don't have sound. Assuming I didn't miss anything, I am not sure why we wouldn't have the right corb value since the 944 covered from boot to hearing sound. I guess I can try again with the full halt and restart process as listed in the openbsd article... [ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { { 0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc5 }, { 0x0, 0x0, 0x2a }, { 0x0, 0x230, 0x3 }, { 0x0, 0x0, 0x27 }, { 0x0, 0x0, 0x0 }, { 0x19, 0xa7c, 0x2 }, { 0x37, 0xb0a, 0x0 }, { 0x50, 0xa00, 0x11 }, { 0x22, 0xa16, 0x2 }, { 0x1, 0x19c, 0x7b }, { 0x70, 0x22d, 0xa }, { 0x47, 0xb02, 0x2a }, { 0x70, 0xa00, 0x11 }, { 0x20, 0x11, 0x9e }, { 0x2, 0xa58, 0x17 }, { 0x0, 0x330, 0x3 }, { 0x0, 0x0, 0x2e }, { 0x0, 0x0, 0x0 }, { 0x62, 0x802, 0x3 }, { 0x20, 0xa00, 0x11 }, { 0x32, 0xa14, 0x2 }, { 0x40, 0x20c, 0x2d }, { 0x20, 0x11, 0x9a }, ... (all 944 lines) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
conf file... ** Attachment added: "conf file" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404851/+files/alc298-944-early-patch.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Using the same steps we tried before, no luck with early patching. Early patching didn't work on the Ion for headphones either, so could be something with this laptop. Attached are the fw and conf files if any else wants to try it... just change the id value to match your sound device... ** Attachment added: "fw file" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404850/+files/alc298-944-early-patch.fw -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Thanks. You are correct that HDA Verbs were not successful. Assuming I did it correctly, I already wrote a script to produce a script that had each of the 944 verbs and it did not turn on the sound. I tried that yesterday, but failed to mention it. If you find that a patch with the 944 does work then let me know and I will be happy to help with the grunt work to reduce the list. I am assuming we will just break the list in two halves, see which half works, and repeat until we see a small enough remainder or find the specific line(s) In the meantime I will take a look at the early patching approach... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Mike, depending on your answers to my many questions from today, if the only way we know to proceed is to build and test a patch, could you help with building the patch (or at least the basic framework of the patch so I can just plug in the CORB values)? I used the attached spreadsheet to parse out the values to hopefully make that process easier. I am comfortable making a new kernel if I have a probably valid patch, but I am not as comfortable at this point making a good patch based on your links. I know I can and probably should learn that process, but I would need to stand up a new machine and it would take much more time (and I would really like to have sound again soon). ** Attachment added: "Play2Slim.ods" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404543/+files/Play2Slim.ods -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Some thoughts based on what I did today. I did make a recording (twice to make sure I didn't do it poorly) of the VM boot process. So from the time the VM initializes until you first see the win 10 desktop. To my surprise there is only 1 single CORB command during that process. It is this line and it is issued ~2173 times during the boot sequence of the vm : CORB[45] = 0x0 (caddr:0x0 nid:0x0 control:0x0 param:0x0) So I don't think that was super helpful, other than it leads me to believe that the audio device and speakers are not initialized until needed, which might help shrink our search a bit. I next took a simple 9 second wav file and placed it on the desktop. I (trying 3 times to make sure it was reproducible) booted the VM, cleared the logs, and then clicked on the sound file to play it with media player. It does play through the speakers, so it seems like this data will have what we need. I was also concerned that if the driver is enabled JIT then perhaps it also disables it again when the sound ends, so I devised a way to capture just the CORB commands between the time I clicked on the file and I first heard sound I then used scripting to reduce it to just the CORB[x] lines and that gives us the attached smaller list of 944 CORB commands (attachment Play2Slim). ** Attachment added: "Play2lim" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404542/+files/Play2Slim -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 I am also going to create a new recording today that is just the VM booting. It seems to me that our problem may not be the audio device itself, but the AKG smart amp not turning on. I am not confident that the disable and re-enable I was doing of the realtek audio device in windows impacts the amp. It might, but I know for sure that when I boot the VM the speakers are made active because the sound works at that point. Also, I had to bind 4 different things to my immot group to make this all work, so that also makes me think it is not just a single device we are after -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Not sure what happened to the enable file, here it is again... Anyway, on your other comment, I assume the Verb ID and Payload you mention would be the control and param values from my logging? Do you know if that is a way to do this troubleshooting with the hda verb approach as opposed to a patch (i.e. do you know how to properly map the values from my new logging to HDA Verbs or is there another way to execute the commands)? I ask because I am not confident in my ability to create a perfect patch on a single try (never having done it before) and this is my main work computer, so I need to be somewhat careful. I could try the patch approach in a linux VM maybe, but not sure if that would be predictable ** Attachment added: "Enable" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404413/+files/Enable -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 enable file... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 disable file ** Attachment added: "Disable" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404232/+files/Disable -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 I am tracking what your saying concept wise. Here is a summary of what I did today, in part just to help me clarify my thoughts and in part so you can maybe correct any gaps and save me troubleshooting time :). - I have gone through all the documents in the wiki for QemuHDADump and as far as I can tell it is running as expected on my PC and creating good logs. I am able to see the logging happening in real-time and I get the frame binary files. I am also able to use his extract and format programs to "see" the data as text. As an example, the attached file named CORB has the final formatted output from disabling and re- enabling the realtek device in windows - Looking at the HDA spec, this seems to be the only detailed description of the CORB entries : HDA Spec CORB 32 bit format The controller generated (outbound) Verb format Bits 31:28 Codec Address Bits 27:20 Node ID Bits 19:0 Verb Payload It is not currently clear to me how to parse the "verb payload" or how to map these CORB values into anything useful. - Several of the documents you listed and your comments mention playing back or using the values to turn on the sound. I assume (maybe incorrectly), that we are trying to a) produce a list of HDA Verb commands that match each CORB entry to prove the sound turns on and then B) work to whittle down the list to the minimum required ones. Part B will be effort, but I think that will just be applied time once we achieve Part A. For Part A, again my assumption, we are trying to convert CORB values into the HDA Verb format : HDA Verb format The hwdep device name The widget NID The verb The parameter - Since I was stuck on what to do with the output from QemuHDADump, I went back and read the other articles more, specifically the BSD article. That author took a different approach and instead of using the QemuHDADump program, he just altered Qemu to give him more info in the output. His source code was available so I worked with that to try and replicate his results. I couldn't just use his common.c file directly because we are on different version of qemu, but I was able to modify the common.c file on my version of qemu, and then remake qemu successfully. So now, instead of just getting lines like this : 15469@1598294292.270884:vfio_region_write (:00:1f.3:region0+0x48, 0xad, 2) 15469@1598294292.270975:vfio_region_write (:00:1f.3:region0+0x20, 0x4000, 4) 15469@1598294292.270983:vfio_region_write (:00:1f.3:region0+0x5d, 0x1, 1) I get more information, like this : 15469@1598294292.272359:vfio_region_write (:00:1f.3:region0+0x5d, 0x1, 1) RIRBWP advance to 185, last WP 183 CORB caddr:0x9 nid:0x47 control:0x407 param:0x20 response:0x64756c63 (ex 0x6f466465) CORB caddr:0x0 nid:0x0 control:0x1 param:0xe6 response:0x65735572 (ex 0x544e4900) RIRBWP advance to 185, last WP 185 RIRBWP advance to 185, last WP 185 RIRBWP advance to 185, last WP 185 15469@1598294292.272436:vfio_region_write (:00:1f.3:region0+0x20, 0xc000, 4) CORBWP advance to 187, last WP 185 CORB[186] = 0x0 (caddr:0x0 nid:0x0 control:0x0 param:0x0) CORB[187] = 0x0 (caddr:0x0 nid:0x0 control:0x0 param:0x0) 15469@1598294292.272522:vfio_region_write (:00:1f.3:region0+0x48, 0xbb, 2) I think the most useful parts here are the CORB[] lines (for example) : CORB[218] = 0x9cac8480 (caddr:0x9 nid:0x4a control:0xc84 param:0x80) This would at least seem like it could be mapped to an HDA verbs, maybe like so sudo hda-verb /dev/snd/hwC0D0 0x4a 0xc84 0x80 - So with that change, I then recorded all the traffic during a re- enable of the realtek devices in windows (I will attach files named Enable and Disable). I then wrote a script to pull out the CORB[x] lines from the log and to produce a new script with all the mapped HDA Verbs. This generated 2034 HDA Verb commands (just on the re-enable of the windows realtek device... yikes... ) - Anyway, I ran the script of 2034 HDA Verb commands on my PC. No errors, but unfortunately no sounds came out of the speakers. Very likely I just mapped the values to my HDA verbs incorrectly, I am just guessing on how to do that, or possibly the specific action we need does not happen on a re-enable. Anyway, thoughts? Do you have any more clarity on how to replay the CORB commands? I can try this all again with a suspend and resume, but suspect that will be a lot of CORB values ** Attachment added: "CORB" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5404231/+files/CORB -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/185151
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Mike, I didn't have luck with the exact steps in comment 15, but the wiki written by Conner was very solid. I had to work through a couple small differences on my system, but now I have a working QEMU VM where the realtek hardware is recognized and the speakers actually work! I worked through all errors I encountered with the QemuHDADump progam and it appears to be running as expected. I went into device manager and disabled and then re-enabled the realtek audio device, and during the re-enable it recorded the following writes (along with creating related frame binary files) : Current verb 0x2a14 Region0+0x804, 0xc381, 4 Current verb 0x2a14 Region0+0x1d2, 0x11, 2 Current verb 0x2a14 Region0+0x804, 0xc781, 4 Current verb 0x2a14 Region0+0x1d8, 0x7a5c000, 4 Current verb 0x2a14 Region0+0x1dc, 0x1, 4 Current verb 0x2a14 Region0+0x1d2, 0x11, 2 Current verb 0x2a14 Region0+0x1d2, 0x31, 2 Current verb 0x2a3c Region0+0x804, 0xc783, 4 Current verb 0x2c60 Region4+0xa, 0x, 4 Current verb 0x2c60 Region4+0xa0004, 0x0, 4 Current verb 0x2c60 Region4+0xd8, 0x3038, 4 Current verb 0x2c60 Region4+0xd0, 0xc400, 4 Current verb 0x2c60 Region4+0xd4, 0x8000, 4 Current verb 0x2c60 Region4+0xc0, 0xe400, 4 Current verb 0x2c60 Region4+0xc4, 0xe400, 4 Current verb 0x2c60 Region4+0xc, 0x0, 4 Current verb 0x2c60 Region4+0xa, 0x1, 4 Current verb 0x2c60 Region4+0xa0004, 0x0, 4 Current verb 0x2c60 Region4+0xd8, 0x0, 4 Current verb 0x2c60 Region4+0xd0, 0xc700, 4 Current verb 0x2c60 Region4+0xd4, 0x8000, 4 Current verb 0x2c60 Region4+0xc0, 0xe700, 4 Current verb 0x2c60 Region4+0xc4, 0xe700, 4 Current verb 0x2c60 Region4+0xc, 0x0, 4 Current verb 0x2c60 Region4+0x4, 0x1010f0e, 4 Current verb 0x2c60 Region4+0x4, 0x1010f0f, 4 Current verb 0x2c60 Region4+0x8, 0x0, 4 Current verb 0x2c60 Region4+0xe8, 0x0, 4 Current verb 0x2c60 Region4+0x4, 0x1000f0f, 4 Now what? I am not sure what to do with any of this data -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi Sure, it returns the following : NP930XCJ-K01US In the US, there are currently just two models of the Ion, my model and the 15" model - NP950XCJ-K01US. The specs say both models have the same audio, so you could probably include that model as well, unless you need someone to confirm on that specific hardware -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Mike, I must be missing a step, but I installed qemu and virtual machine manager successfully, then found a win 10 iso and installed and activated windows in a new VM However, when I run that driver you mentioned in comment 19, it runs without error, but my vm still doesn't seem to know its a samsung pc. I also installed samsung update from the app store and it runs and says its not a samsung pc. Is there something I need to do to allow pass through of the underlying hardware? I do not have speaker sound in windows or linux... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@PowerKiKi I am happy to share the steps I took for information purposes, with the understanding that I can't take any responsibility on whether they will work for you or not. Performing anything like this on your daily required PC is definitely a risk. Also, your on Xbuntu, so not sure if that will cause differences or not. I did not lose wifi or anything else in the process. I did have one issue to work around with Grub2 at least on my Ubuntu it auto installed with Grub in hidden mode. That is not a problem per say, but if you want to be able to choose between kernels at boot time then you have to switch back to menu mode... Also keep in mind that this will work until updates pushes a new kernel to your machine. Until the patch from gannon1 is accepted and incorporated by canonical it will require redoing it with every kernel update (definite technical debt). All that being said, here are the steps I took - check active kernel (just to see what it is before you start) uname -r - Install prereqs sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev - Install git if missing for some reason (i already had it installed for work) sudo apt-get install git - Download patch and place at Desktop 0001-ALSA-hda-realtek-Add-quirk-for-Samsung-Galaxy-Book-I.patch - Create a new directory in home folder (any name you like) - CD into new folder (in terminal) - Clone kernel (this is likely slightly different for Xbuntu, I would recommend researching first) git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git - CD into the `ubuntu-focal` folder created by the Git clone (in terminal, name likely xbuntu-focal for Xbuntu) - Apply patch (change path if you didn't use Desktop and add name of patch) patch -p1 < ~/Desktop/{patch name with .patch} - Make kernel (run these commands in terminal in folder created by git where you applied patch) cp /boot/config-`uname -r` .config make oldconfig make menuconfig (the instructions I found had this step, but i just exited) make clean make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom {NOTE : change -custom to an identifier of your choice, this will be part of kernel name} - Install newly created debs (run from same folder in terminal) sudo dpkg -i ../*.deb - Update grub2 sudo update-grub2 - Reboot (select new header in advanced options if needed) - hopefully at this point it reboots successfully and new kernel is active! - Check to be sure new kernel was activated (you will see your identifier if successful) uname -r -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 I follow the concept. I tried first using vmware workstation, mostly just cause I already had it installed for another purpose, but unfortunately no luck there. Vmware abstracts the underlying hardware and windows doesn't even see it as a realtek audio device. I also shared the problem of not being able to get samsung update installed, but I used your driver download you posted and it did install, but sadly I can't get speaker sound even with the driver in wmware... So, I will see if I can find some time this weekend to get qemu going. One thought on your other thread... if you suspend or reboot the entire VM then you will see tons of traffic as it communicates with every hardware device. Perhaps instead you could just go into device manager and then disable and re-enable the audio device specifically while tracing. Seems like it would greatly reduce the search data, assuming it actually issues the needed command during a disable... just a thought... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 I am still reading through all the links, but I think I get the basic concept. Like you I don't readily have a working windows VM to trace, but I will see if I can set something up. Ill let you know if I have any luck -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 OK, had some small struggles with grub on efi, but yes, once I made a completely new kernel version with just this patch then it did work and does survive reboots and source changes, etc. So at least until a new kernel comes out I am set :) Is there anything I can do to help with the speaker investigation? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 OK, so : - downloaded kernel source - applied patch - ran make to create new debs - activated new custom kernel - added "options snd-hda-intel model=alc298-samsung-headphone" to alsa-base.conf - rebooted - used "uname -r" to ensure the new custom kernel was active I then started some music and still had no sound. I manually ran the hda verb and its fixed, so essentially no change... I am using standard Ubuntu 20.04 LTS, so on my initial git checkout I used : git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git My custom kernel is 5.4.44-custom, which makes since because it showed as 5.4.x before I started... I notice in your comment you did a checkout of v5.8... does that make a difference? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
Yea, sorry. I was working off an apt-get version of the kernel source, then after posting, I noticed you were using git. I have downloaded from the source from git and applied the patch successfully. The new custom kernel is now in the make process. I will update once it finishes and I can activate -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
OK, While I would prefer to wait until the patch lands, for an ubuntu LTS that can take a while, so I tried to do it manually. I downloaded the kernel src, but I am having trouble applying the patch. I am using the command : patch -i ~/Desktop/0001-ALSA-hda-realtek-Add-model-alc298-samsung- headphone.patch (I downloaded your patch to my desktop folder), but this gives me an error saying "can't find file to patch at input line 20"... which is this line in the script : @@ -7867,6 +7867,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = { {.id = ALC299_FIXUP_PREDATOR_SPK, .name = "predator-spk"}, {.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"}, {.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"}, + {.id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc298-samsung-headphone"}, {} }; Am I not applying the patch correctly? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 I also tried : patch -p1 < ~/Desktop/0001-ALSA-hda-realtek-Add-model-alc298-samsung- headphone.patch And received the same error... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Sure. I tried just that single character change first. No change after reboot, i.e. still had to issue the manual command. If I use the manual command with either 0x5 or 0xc5 it works perfectly in both cases. Just for good measure I also tried adding back the model section too, but no help there either. This is what I currently have in /lib/firmware/alc298-sound-patch.fw... [codec] 0x10ec0298 0x144dc18a 0 [model] auto [verb] 0x1a 0x707 0x5 For whatever reason it just does not seem to find and activate the patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
@gannon1 Thanks for the reply. Perhaps I am missing something because it seems like it should work, but I have not had any luck with the method described by ironincoder. Just to be sure I did it again from the start using the following steps (perhaps I just didn't understand and missed a step)... - I ran alsa_info.sh and found the relevant section : !!HDA-Intel Codec information !!--- --startcollapse-- Codec: Realtek ALC298 Address: 0 AFG Function Id: 0x1 (unsol 1) Vendor Id: 0x10ec0298 Subsystem Id: 0x144dc18a Revision Id: 0x100103 - I created a new file named /lib/firmware/alc298-sound-patch.fw and included this text in that file (his comments said you could skip the model section): [codec] 0x10ec0298 0x144dc18a 0 [verb] 0x1a 0x707 0xc5 - I created a new file named/etc/modprobe.d/alc298-sound-patch.conf and included this text : options snd-hda-intel patch=alc298-sound-patch.fw,alc298-sound-patch.fw,alc298-sound- patch.fw,alc298-sound-patch.fw - I rebooted completely and plugged in my headphones and turned on some music. I didn't hear anything. - I then manually ran the commandsudo hda-verb /dev/snd/hwC0D0 0x1a SET_PIN_WIDGET_CONTROL 0x5 and it works perfectly until I change sound sources or the music stops. Did I miss a step to make this active? I can share the full output of alsa_info.sh if its helpful... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
I have the 13 inch Ion with the intel built in gpu. I am also running standard Ubuntu and not Xbuntu. I have never had the system lock up or freeze on any occasion and I use it for at least 10 hours a day. My keyboard lights have also always worked perfectly from the start. In fact, the computer is an almost perfect machine for Linux and my only issues have been the sound and the fingerprint reader (which is not recognized by Linux, but I don't actually care about anyway). Its frustrating I can't get the headphone modification to stick as a fix. I have tried everything I can think of... including adding it as a systemd daemon, adding it as an Alsa patch, adding as a hacky @reboot cron job, and changing the "options snd-hda-intel" settings in alsa- base.conf. In all cases it feels like the verb modification is lost when Alsa goes into power save mode for any reason (music source stops or sound source changes etc.). I have even tried to disable alsa power save both in alsa-base.conf and the individual files in "/sys/module/snd_hda_intel/parameters/". No luck in either case. If anyone is tracking, this is also a duplicate of the bug "https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1886493"; where another user reported the exact same issue with the new Ions (I assume the new Samsung Galaxy Book Flex models have the same issue, but don't have one to confirm)... Just fyi... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851518] Re: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones
I have the same computer and issue as PowerKiKi... the new Samsung Ion running ubuntu 20.04. I have found that I can make the headset jack work temporarily if I issue this command : sudo hda-verb /dev/snd/hwC0D0 0x1a SET_PIN_WIDGET_CONTROL 0x5 But it only lasts until the sound subsystem goes to sleep (i.e. no sound to play or changing sound sources). Is there some way to make this last without having to constantly reissue the command? I have found no viable way to make the speakers work. One forum I read said it might be related to the AKG Smart Amp in these new Samsung devices, but I have no way to prove or disprove that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851518 Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on internal speakers, very very quiet on headphones To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1886493] Re: Galaxy Book Ion, sof-hda-dsp detected but no soound (ubuntu 20.04)
I have a galaxy book ion with ubuntu 20.04 and have exactly the same issue. I have found that I can make the headset jack work if I issue this command : sudo hda-verb /dev/snd/hwC0D0 0x1a SET_PIN_WIDGET_CONTROL 0x5 But it only lasts until the sound subsystem goes to sleep (i.e. no sound to play or changing sound sources). I have found no viable way to make the speakers work. One forum I read said it was likely due to the AKG Smart Amp in these new Samsung devices. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1886493 Title: Galaxy Book Ion, sof-hda-dsp detected but no soound (ubuntu 20.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1886493/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs