Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Ihmemies
Oct 6, 2012

VictualSquid posted:

If your device is accessed through USB you need lsusb instead of lspci.

Hmm.

lsusb
Bus 002 Device 002: ID 8087:8002 Intel Corp. 8 channel internal hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Bus 003 Device 006: ID 0557:2419 ATEN International Co., Ltd
Bus 003 Device 004: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@pve:~# dmesg | grep -i bluetooth
[ 4.337453] Bluetooth: Core ver 2.22
[ 4.337550] NET: Registered PF_BLUETOOTH protocol family
[ 4.337552] Bluetooth: HCI device and connection manager initialized
[ 4.337557] Bluetooth: HCI socket layer initialized
[ 4.337560] Bluetooth: L2CAP socket layer initialized
[ 4.337565] Bluetooth: SCO socket layer initialized
[ 4.344402] Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
[ 4.345469] Bluetooth: hci0: Device revision is 2
[ 4.345471] Bluetooth: hci0: Secure boot is enabled
[ 4.345472] Bluetooth: hci0: OTP lock is enabled
[ 4.345473] Bluetooth: hci0: API lock is enabled
[ 4.345474] Bluetooth: hci0: Debug lock is disabled
[ 4.345475] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 4.345960] Bluetooth: hci0: Failed to load Intel firmware file intel/ibt-18-16-1.sfi (-2)
[ 4.347451] Bluetooth: hci0: Failed to read MSFT supported features (-56)
[ 6916.457880] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 6916.457886] Bluetooth: BNEP filters: protocol multicast
[ 6916.457891] Bluetooth: BNEP socket layer initialized

Seems that perhaps the OS can't find the bluetooth firmware/driver file. Now where to get one and where to put it...

Edit: https://packages.debian.org/stable/firmware-iwlwifi

* Intel Wireless 9160/9260 (var 16 rev 1) Bluetooth firmware, version
21.30.0.4 (intel/ibt-18-16-1.sfi)

code:
root@pve:/lib/firmware/intel# apt-get install firmware-iwlwifi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package firmware-iwlwifi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  pve-firmware

E: Package 'firmware-iwlwifi' has no installation candidate
gently caress this.



??? Apparently proxmox has some firmware package but it doesn't include the intel BT I need...

Edit: and apparently the pve-firmware package has nothing inside??

root@pve:~# apt-file list pve-firmware
root@pve:~# apt-file list xterm
xterm: /etc/X11/app-defaults/KOI8RXTerm
xterm: /etc/X11/app-defaults/KOI8RXTerm-color
xterm: /etc/X11/app-defaults/UXTerm
xterm: /etc/X11/app-defaults/UXTerm-color
xterm: /etc/X11/app-defaults/XTerm
xterm: /etc/X11/app-defaults/XTerm-color
...

Edit2: I manually downloaded the package, extracted the firmware files and copied them to /lib/firmware/intel

code:
Saving to: ‘ibt-18-16-1.sfi’

ibt-18-16-1.sfi                              [  <=>                                                                           ] 658.86K  2.15MB/s    in 0.3s    

2022-10-11 19:16:05 (2.15 MB/s) - ‘ibt-18-16-1.sfi’ saved [674672]

root@pve:~# ls
current.repos.list  ibt-18-16-1.ddc  ibt-18-16-1.sfi
root@pve:~# cp -rf ibt-18-16-1.ddc /lib/firmware/intel
root@pve:~# cp -rf ibt-18-16-1.sfi /lib/firmware/intel
root@pve:~# ls /lib/firmware/intel
ibt-11-5.ddc  ibt-11-5.sfi  ibt-12-16.ddc  ibt-12-16.sfi  ibt-18-16-1.ddc  ibt-18-16-1.sfi  ice
root@pve:~# 
Maybe this will now work.

Edit3: yes.

code:
root@pve:~#  dmesg | grep -i bluetooth
[    4.515183] Bluetooth: Core ver 2.22
[    4.515208] NET: Registered PF_BLUETOOTH protocol family
[    4.515209] Bluetooth: HCI device and connection manager initialized
[    4.515214] Bluetooth: HCI socket layer initialized
[    4.515216] Bluetooth: L2CAP socket layer initialized
[    4.515219] Bluetooth: SCO socket layer initialized
[    4.621477] Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
[    4.622711] Bluetooth: hci0: Device revision is 2
[    4.622715] Bluetooth: hci0: Secure boot is enabled
[    4.622717] Bluetooth: hci0: OTP lock is enabled
[    4.622718] Bluetooth: hci0: API lock is enabled
[    4.622720] Bluetooth: hci0: Debug lock is disabled
[    4.622721] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    4.623849] Bluetooth: hci0: Found device firmware: intel/ibt-18-16-1.sfi
[    4.939508] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.939511] Bluetooth: BNEP filters: protocol multicast
[    4.939514] Bluetooth: BNEP socket layer initialized
[    6.126509] Bluetooth: hci0: Waiting for firmware download to complete
[    6.127522] Bluetooth: hci0: Firmware loaded in 1468426 usecs
[    6.127589] Bluetooth: hci0: Waiting for device to boot
[    6.141522] Bluetooth: hci0: Device booted in 13638 usecs
[    6.141658] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-18-16-1.ddc
[    6.143602] Bluetooth: hci0: Applying Intel DDC parameters completed
[    6.146575] Bluetooth: hci0: Firmware revision 0.1 build 168 week 48 2020
[    6.205522] Bluetooth: hci0: MSFT filter_enable is already on
root@pve:~# bluetoothctl
Agent registered
[CHG] Controller BC:54:2F:CC:9E:B6 Pairable: yes
[bluetooth]# list
Controller BC:54:2F:CC:9E:B6 pve [default]

Ihmemies fucked around with this message at 17:20 on Oct 11, 2022

Adbot
ADBOT LOVES YOU

RFC2324
Jun 7, 2012

http 418

Bluetooth on linux is always so much fun to get working.

I was shocked when my Fedora install just recognized my bluetooth dongle and paired with my keyboard no issues

v1ld
Apr 16, 2012

Dunno if I have just been lucky in what I've tried but BT has been good in both Arch and the Deck's SteamOS variant of Arch. Have used headsets, controllers and external powered speakers with the desktop and headsets with the Deck. No issues at all. In fact, the Deck at least now seems to have the strongest BT stack of the consoles with more codecs being supported thanks to Linux.

Steam itself won't disconnect controllers on inactivity or if I bind a button to disconnect, but this seems to be a Steam problem as I can do the disconnect from the BT cli.

Ihmemies
Oct 6, 2012

It seems simple enough. Use an intel wifi/bt product, have the drives ready included in the OS. Or download the intel driver package by yourself. Driver installation seems to be quite elegant in linux, just have the driver file in the driver folder. Yes. I wish it was like that in windows..

But when the OS doesn't come bundled with the driver, and doesn't tell you it's missing... you have to figure all this out by yourself. I don't use linux so I have no idea how to do stuff on linux. Every single step is done blind with a search engine searches.

Ihmemies
Oct 6, 2012

Do you guys have any recommendations for a docker VM operating system/distro? I want to run docker containers inside a VM. Proxmox hypervisor would handle the VM.

Volguus
Mar 3, 2009
For me BT on linux was always simpler and more straightforward to use than in windows (for example). It just worked, whenever I needed it. Then again, is not like I tested more than 3 or so bt dongles over the years.

pseudorandom name
May 6, 2007

Bluetooth on Linux tends to work flawlessly if you have a good Bluetooth controller built in to your motherboard and can be hit-or-miss if you have a cheap counterfeit USB dongle.

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
For me my laptop's onboard BT crashes the BT service when I try to turn it on. And my aliexpress BT dongle works automatically without setup.

v1ld
Apr 16, 2012

Ihmemies posted:

It seems simple enough. Use an intel wifi/bt product, have the drives ready included in the OS. Or download the intel driver package by yourself. Driver installation seems to be quite elegant in linux, just have the driver file in the driver folder. Yes. I wish it was like that in windows..

But when the OS doesn't come bundled with the driver, and doesn't tell you it's missing... you have to figure all this out by yourself. I don't use linux so I have no idea how to do stuff on linux. Every single step is done blind with a search engine searches.

Yeah, having to find the driver and get it in is no fun. This is where the distro comes in, really. If your particular distro of choice has it for your device, it's mostly plain sailing as you say.

Ihmemies
Oct 6, 2012

Yes. I understand that proxmox must have the driver so VM's can use the BT adapter.

Anyways, next step is docker. So maybe Debian with only standard system utilities is good enough for a docker VM os.

Klyith
Aug 3, 2007

GBS Pledge Week
When I first got set up and switched over earlier this year, bluetooth was the one hardware-related thing on my PC that was a bit flaky. My USB BT dongle was recognized straight away, and my headphones worked. But a lot of the time when they auto-connected after turning on the headphones, the connection didn't fully complete. I had to disconnect and reconnect on the PC side a few times before the headphones said "bluetooth connected" and they got added as an audio device.

Something got improved since then and now they don't need that.


Ihmemies posted:

It seems simple enough. Use an intel wifi/bt product, have the drives ready included in the OS. Or download the intel driver package by yourself. Driver installation seems to be quite elegant in linux, just have the driver file in the driver folder. Yes. I wish it was like that in windows..

But when the OS doesn't come bundled with the driver, and doesn't tell you it's missing... you have to figure all this out by yourself. I don't use linux so I have no idea how to do stuff on linux. Every single step is done blind with a search engine searches.

You seem to jumping straight into not just the deep end on the pool, but into the middle of the pacific ocean. Debian is not exactly noob friendly, and has way less stuff automatically set up for you out of the box than a distro targeted at desktop use.

And yes, you have to learn all this stuff to be proficient at problem-solving. You have to learn this stuff on any other OS too, you just already did it. And over a long period of slow experience so it didn't seem like a big deal.


Like, I went with a noob-friendly distro and I'd actually done occasional poking at linux for a long time previously.

Kibner
Oct 21, 2008

Acguy Supremacy

Ihmemies posted:

Yes. I understand that proxmox must have the driver so VM's can use the BT adapter.

Anyways, next step is docker. So maybe Debian with only standard system utilities is good enough for a docker VM os.

Alpine might be worth a shot, but it might be too minimal.

Matt Zerella
Oct 7, 2002

Norris'es are back baby. It's good again. Awoouu (fox Howl)

Ihmemies posted:

Do you guys have any recommendations for a docker VM operating system/distro? I want to run docker containers inside a VM. Proxmox hypervisor would handle the VM.

Personally I like Fedora or Debian 11 for this.

waffle iron
Jan 16, 2004
I always forget that with most of the Intel m.2 wifi/Bluetooth cards the Bluetooth is connected over the USB pins and the wifi gets the entire pcie lane.

Ihmemies
Oct 6, 2012

Well Proxmox is based on debian so I guess it makes sense to run dockers in Debian too. I installed a debian with just the system essentials, no GUI. Well.

Problem with Docker is that I don't really understand how it works. Hopefully I don't need to. But one thing I need to understand: how does the config file syntax work..

Like if I want to run homeassistant & unifi controller:

docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Europe/Helsinki \
-v /home/ihmemies/docker/ha/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable

docker run -d \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Helsinki \
-p 8443:8443 \
-p 3478:3478/udp \
-p 10001:10001/udp \
-p 8080:8080 \
-v /home/ihmemies/docker/unifi/config \
--restart unless-stopped \
lscr.io/linuxserver/unifi-controller:latest

What do I really have to put after the "-v"?

I guess that won't work. Or at least it doesn't produce any files in the /home/ihmemies directory.

Where should I store the files? I guess it wants to write some config data to a file somwhere.

Warbird
May 23, 2012

America's Favorite Dumbass

For ports (-p) and volumes (-v) the format is [host]:[container] broadly speaking. Since you’re using a premade container that expects certain files and ports and so forth “internally” you don’t need to worry about changing the right side of that equation. The left side is up to you, you can use any location that the user being passed in the puid/pgid section can access so the container can store some files (usually a config or the like). For ports anything that isn’t taken is usable.

Ihmemies
Oct 6, 2012

So umm something like

-v /home/ihmemies/docker/ha/config:/config

Would be the proper syntax?

Where I'm supposed to save files like that in linux?

Warbird
May 23, 2012

America's Favorite Dumbass

If you’re running the command as yourself the path you listed should be fine. It’s really up to you. Just don’t mount root (/) or bad things could happen.

RFC2324
Jun 7, 2012

http 418

just as a suggestion: might be easier to figure out a docker-compose file than do everything the hard way on the cli like that. maybe its just me but the format is easier to parse

Kibner
Oct 21, 2008

Acguy Supremacy

RFC2324 posted:

just as a suggestion: might be easier to figure out a docker-compose file than do everything the hard way on the cli like that. maybe its just me but the format is easier to parse

I agree, 100%.

Warbird
May 23, 2012

America's Favorite Dumbass

Third-inch that but get a container going first before you start messing about there. Once you have your head wrapped around it things are easy to transfer over.

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
Isn't there a new container program now that everybody is raving about? Podman, I think.

Ihmemies
Oct 6, 2012

I realized that using CLI is a futile effort. I installed portainer community edition. Things look a lot more pleasant now, and I don't manually have to worry about syntax or everything. I just click buttons in a browser and containers appear, yeah.

Ihmemies
Oct 6, 2012

I need to run Qt for school. So I installed a debian with kde plasma. Mouse forward/backward keys don't work and win button doesn't open the start menu. :sigh: Why linux hates its users year after year?

I'm using regular remote desktop from windows with xrdp.

Klyith
Aug 3, 2007

GBS Pledge Week

Ihmemies posted:

I need to run Qt for school. So I installed a debian with kde plasma. Mouse forward/backward keys don't work and win button doesn't open the start menu. :sigh: Why linux hates its users year after year?

I'm using regular remote desktop from windows with xrdp.

You can change the keybindings for everything in the system settings. However, win/meta key is a modifier key in linux, so can't be bound to activate the app launcher (start menu) by itself. Some people would say this is actually a good thing -- all the keyboards that comes with various win-lock functions seem to agree.

Back & forward work fine, maybe your xrdp connection is not forwarding them?


Also you don't need to use the KDE desktop to run Qt applications, unless you're running like a plasma applet or something. Qt applications work anywhere including on windows.

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
If I press the win key on my Plasma install, it opens the KDE menu. I have no idea where that setting is set, it came like this as default.

KozmoNaut
Apr 23, 2008

Happiness is a warm
Turbo Plasma Rifle


Having the win key open the application menu in KDE is slightly hacky, it requires you to have alt+F1 bound to open the menu. Plasma "highjacks" the win/meta key to open the application menu when that shortcut is set, while still letting you use it as a modifier key.

From Windows to Windows via RDP, the win key opens the start menu on my local machine, not the remote. So I don't think Plasma is at fault here.

Ihmemies
Oct 6, 2012

Klyith posted:

You can change the keybindings for everything in the system settings. However, win/meta key is a modifier key in linux, so can't be bound to activate the app launcher (start menu) by itself. Some people would say this is actually a good thing -- all the keyboards that comes with various win-lock functions seem to agree.

My kb has a lock but I never use it. Sometimes I accidentally lock it and get annoyed. So I need to install extra software to open the start menu in linux with Windows button, I see.

quote:

Back & forward work fine, maybe your xrdp connection is not forwarding them?

Well how to debug that one. Everything else seems to work fine.

quote:

Also you don't need to use the KDE desktop to run Qt applications, unless you're running like a plasma applet or something. Qt applications work anywhere including on windows.

No but I have to use the qt creator specifically to make c++ apps.

Klyith
Aug 3, 2007

GBS Pledge Week

KozmoNaut posted:

Having the win key open the application menu in KDE is slightly hacky, it requires you to have alt+F1 bound to open the menu. Plasma "highjacks" the win/meta key to open the application menu when that shortcut is set, while still letting you use it as a modifier key.

Oooh, that's how it works. Now I remember that changed away from the default (I'm one of those who doesn't want win key to open the menu)... but just now trying to set it to plain win didn't work without knowing the alt+f1 trick.


Ihmemies posted:

No but I have to use the qt creator specifically to make c++ apps.

Qt is a cross platform IDE dog. It works on windows. Your course materials probably have instructions for how to install & get set up.

Ihmemies
Oct 6, 2012

Klyith posted:

Oooh, that's how it works. Now I remember that changed away from the default (I'm one of those who doesn't want win key to open the menu)... but just now trying to set it to plain win didn't work without knowing the alt+f1 trick.

Qt is a cross platform IDE dog. It works on windows. Your course materials probably have instructions for how to install & get set up.

It doesn't support spaces in folder names in Windows so it's not meant for Windows. Also everyone said Linux is the one trve developing enviroment.

I have used Ubuntu in hyperv so far but I wanted to try out kde plasma on my server to see how it works.

Also don't they (linux users/distros) have some app store already? Why you must install software from CLI with apt-get like this is still 80's instead of 2022?

Edit: seems kde has at least this: https://apps.kde.org/apper/

Ihmemies fucked around with this message at 15:08 on Oct 12, 2022

KozmoNaut
Apr 23, 2008

Happiness is a warm
Turbo Plasma Rifle


Ihmemies posted:

Also don't they (linux users/distros) have some app store already?

There are various ones, designed to provide graphical interfaces to one or more of the common package management systems of various distros. The one included with KDE is called Discover.

Kibner
Oct 21, 2008

Acguy Supremacy
Like the majority of gui applications on Linux, the app stores are just wrappers for a CLI. You could even roll your own, if you'd like! It's part of what makes Linux such a great development environment, imo.

RFC2324
Jun 7, 2012

http 418

Discover has been around for longer than any other app store too, iirc(unsure about the apple eco system timelines), which is why no one will tell you to use it. We remember the old days when it could easily break your system, and don't want to tell someone else to do that

Its not bad nowadays, I use it to find package names to install from the cli

ExcessBLarg!
Sep 1, 2001

Ihmemies posted:

Mouse forward/backward keys don't work and win button doesn't open the start menu. :sigh: Why linux hates its users year after year?
My keyboard doesn't even have a "win button".

RFC2324
Jun 7, 2012

http 418

ExcessBLarg! posted:

My keyboard doesn't even have a "win button".

I think yours was replaced by a 'lose button'

Mr. Crow
May 22, 2008

Snap City mayor for life
The only thing I use the software centers for is notifications that there are new security or bug fixes. On KDE in the system tray there's a blue dot if there's general updates and red for critical.

Honestly I'd probably use the gui apps if they didn't have to refresh their cache every time, for some reason Discover seems to hang and update significantly slower than the cli, it boggles my mind that these still basically are a coin toss on usability and functionality.

ExcessBLarg!
Sep 1, 2001

RFC2324 posted:

I think yours was replaced by a 'lose button'
It's just a 101-key keyboard, which I assume is what all the Linux gray neckbeards have, hence the lack of priority for it.

BlankSystemDaemon
Mar 13, 2009



Klyith posted:

You can change the keybindings for everything in the system settings. However, win/meta key is a modifier key in linux, so can't be bound to activate the app launcher (start menu) by itself. Some people would say this is actually a good thing -- all the keyboards that comes with various win-lock functions seem to agree.

Back & forward work fine, maybe your xrdp connection is not forwarding them?


Also you don't need to use the KDE desktop to run Qt applications, unless you're running like a plasma applet or something. Qt applications work anywhere including on windows.
I'm curious, if you happen to know, whether the super key (which is the actual name for it, irrespective of the logo on it) being used a modifier is specified anywhere in a standard, or is it a de-facto standard because we've all come to expect it.
Incidentally, the meta-key is the name of the alt-key, and it's often abbreviated with a capital M like control is abbreviated with a ^.

ExcessBLarg! posted:

My keyboard doesn't even have a "win button".
There used to be a company that'd do custom laser etching on keycaps, if they were still around I'd put Beastie on a pair of keys for the super, and leave the rest of my keycaps blank.

RFC2324
Jun 7, 2012

http 418

ExcessBLarg! posted:

It's just a 101-key keyboard, which I assume is what all the Linux gray neckbeards have, hence the lack of priority for it.

I'm rocking a 61 key and loving it.

Still got that win key tho

Adbot
ADBOT LOVES YOU

Klyith
Aug 3, 2007

GBS Pledge Week

BlankSystemDaemon posted:

I'm curious, if you happen to know, whether the super key (which is the actual name for it, irrespective of the logo on it) being used a modifier is specified anywhere in a standard, or is it a de-facto standard because we've all come to expect it.
Incidentally, the meta-key is the name of the alt-key, and it's often abbreviated with a capital M like control is abbreviated with a ^.

Beats me, I was just guessing based on it not letting me assign plain win (or any other modifier) as a shortcut in KDE. Which apparently was a software issue more than anything else.

On USB/HID keybaords there's nothing special about modifier keys at the physical / signal level anymore though.

BlankSystemDaemon posted:

There used to be a company that'd do custom laser etching on keycaps, if they were still around I'd put Beastie on a pair of keys for the super, and leave the rest of my keycaps blank.

wasdkeyboards does custom lasered key prints. Kinda expensive for abs keys but they look good and are UV coated so they hold up decently.

They have cheaper pre-printed keys with linux logos but no bsd devil.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply