Re: cannot connect to a bluetooth speaker
by Federico Bruni
Il giorno gio 22 mar 2018 alle 22:32, Federico Bruni
<fede(a)inventati.org> ha scritto:
>
>
> Il giorno gio 22 mar 2018 alle 9:26, Federico Bruni
> <fede(a)inventati.org> ha scritto:
>>
>>
>> Il giorno gio 22 mar 2018 alle 8:21, Federico Bruni
>> <fede(a)inventati.org> ha scritto:
>>> Let me add that I've tried also bluetoothctl.
>>> I can pair it but after a few seconds it's disconnected:
>>>
>>> [bluetooth]# trust AC:89:95:DA:52:5E
>>> Changing AC:89:95:DA:52:5E trust succeeded
>>> [bluetooth]# pair AC:89:95:DA:52:5E
>>> Attempting to pair with AC:89:95:DA:52:5E
>>> [CHG] Device AC:89:95:DA:52:5E Connected: yes
>>>
>>> Failed to pair: org.bluez.Error.AuthenticationCanceled
>>> [CHG] Device AC:89:95:DA:52:5E Connected: no
>>>
>>>
>>
>> I've now searched this error and found a possible solution here:
>> https://bbs.archlinux.org/viewtopic.php?id=180165
>>
>> It says that installing bluez-hid2hci would solve the problem.
>> It was not installed on my system, so I'll give it a try when I'm
>> back home.
>>
>
> I'm doing some progress. Now the bluetooth connection is kept and the
> speaker appears in the Sound settings (see attached screenshot).
>
> But the speaker is mute. It might be some audio library missing or
> what?
> I tried `dnf search a2dp` and found only package sbc, which is
> already installed.
> Some problem with PulseAudio?
>
>
I disabled pulseaudio respawning and added verbosity (pulseaudio
-vvvvvv)
and I got this interesting information:
I: [pulseaudio] module-suspend-on-idle.c: Sink
alsa_output.pci-0000_00_1b.0.analog-stereo idle for too long,
suspending ...
which brought me to the solution suggested here:
https://askubuntu.com/questions/218444/sound-output-starts-delayed
i.e. commenting load-module module-suspend-on-idle in
/etc/pulse/default.pa
Now I can play music on that speaker. Success :-)
Sorry for this "solo thread", but I hope it can be helpful for others.
Best
Federico
6 years
mariadb-connector-c for MinGW
by Dirk Gottschalk
Hello.
I'm using MinGW for some of my projects which require to be usable also
on Windows. For this purpose I'm using MinGW to compule the Windows
binaries.
Some of this projects require MariaDB. In this case I found out that
there is no MinGW-Package of the C connector.
Being as lazy as I am, I built one by myself and put it in my local
repository.
Now, I want to share it with other Fedora users, so that they don't
have to fumble around with this situation, because you have to change
some things in the sources to compile it with MinGW. In most cases
there are just includes where they seem to have forgotten to take care
about the case sensitivity of filenames.
My questions now:
Is there any interest for those Packages?
If yes, what is the best way to distribute these packages? Copr?
Thanks in advance,
Dirk
--
Dirk Gottschalk
Paulusstrasse 6-8
52064 Aachen
Tel.: +49 1573 1152350
6 years, 1 month
OT: vlookup/hlookup/countif help for a spreadsheet
by Antonio Olivares
http://excel-example.com/templates/sport-tournament-template
Dear fellow fedora users,
I have a script that uses awk to generate reports for our soccer team. This script was corrected by Jon LaBadie a very helpful person. Unfortunately my colleagues do not have linux on their machines and they would like a spreadsheet to do the same so they can keep track of the season and to check how many PTS/GF/GA/DIF they have as a team. I created one, but they do not understand it, uses decimals and integer part, and they get confused. I am modifying the spreadsheet a bit to more as to what they want.
However, I do not understand how to use countif/vlookup/hlookup to look for how many PTS they have, GF and GA so they can be tallied like SUMIF? command. If anyone is willing to help I can send you spreadsheet. Last email I tried bounced because it had HTML and was big :(
for example
PTS TG REG OT PKS : PKS OT REG TG PTS
3 TEAM1 2 1 1 0 2:1 0 0 1 1 TEAM3 0
there are 10 games for each team and the team earns 3 PTS for a win in REGULATION, 2 PTS for a win in OT or PKS, 1 PT for a loss in OT/PKS and 0 PTS for a loss in REGULATION. The PTS are tallied, the TG are the total goals: REG + OT as the PKS do not count in this area, they only determine who gets the 2 PTS.
the spreadsheet should tally the information
TEAM GP 3-PTS 2-PTS 1-PT 0-PTS GF GA DIF PTS
TEAM1 5 2 2 1 0 5 3 +2 11
There are some online examples, but they only contain W-win L-loss D-draw. We do not have draws as the game has to be decided and we play OT and/or shoot PKS if the game is still tied.
The examples are here:
Sport tournament template in the site above, i cannot copy+paste correctlyWe only have two rounds and we only take care of our district we do not need more groups. Ideas are appreciated.
Best Regards,
Antonio
6 years, 1 month
Show Gnome Alt-Tab window on all monitors
by Laverne Schrock
Hi,
I'm running Fedora 27 with Gnome and a dual monitor setup.
When I press Alt-Tab, the window switcher only appears on my primary
monitor.
Is it possible to make the window switcher appear on all the monitors?
Perhaps there is some extension that I failed to find which does this?
Thanks,
Laverne
6 years, 1 month
cannot connect to a bluetooth speaker
by Federico Bruni
Hi all
I've tried posting this message via the web interface yesterday, but I
don't see it in the archives. So I'm sending it again by regular email.
I have two speakers:
$ hcitool scan
Scanning ...
AC:89:95:DA:52:5E Beoplay M5_27502524
00:12:6F:3F:BD:D5 Mu-so Qb BT 7047
I can connect via bluetooth to both using my Android phone.
I can connect via bluetooth only to Mu-so using Fedora 27.
If I try the bluetooth connection using GNOME setting, I don't get much
information. I just see that it tries the connection and after a while
it fails.
On a terminal I get a timeout:
$ bt-device -c AC:89:95:DA:52:5E
Connecting to: AC:89:95:DA:52:5E
Error: Timeout was reached
Finally, journalctl seems to suggest that may be some kernel problem?!?
Mar 22 07:36:45 fedora kernel: Bluetooth: hci0: last event is not cmd
complete (0x0f)
I found the same error message in this bug report, which is for Fedora
28 though:
https://bugzilla.redhat.com/show_bug.cgi?id=1514836#c15
Thanks in advance for any suggestion
Federico
PS The bluetooth service is running fine:
$ systemctl status bluetooth
* bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled;
vendor preset: enabled)
Active: active (running) since Thu 2018-03-22 07:25:05 CET; 26min ago
Docs: man:bluetoothd(8)
Main PID: 759 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
`-759 /usr/libexec/bluetooth/bluetoothd
Mar 22 07:25:05 fedora systemd[1]: Starting Bluetooth service...
Mar 22 07:25:05 fedora bluetoothd[759]: Bluetooth daemon 5.48
Mar 22 07:25:05 fedora bluetoothd[759]: Starting SDP server
Mar 22 07:25:05 fedora systemd[1]: Started Bluetooth service.
Mar 22 07:25:05 fedora bluetoothd[759]: Bluetooth management interface
1.14 initialized
Mar 22 07:25:19 fedora bluetoothd[759]: Endpoint registered:
sender=:1.69 path=/MediaEndpoint/A2DPSource
Mar 22 07:25:19 fedora bluetoothd[759]: Endpoint registered:
sender=:1.69 path=/MediaEndpoint/A2DPSink
Mar 22 07:42:45 fedora bluetoothd[759]: No cache for AC:89:95:DA:52:5E
6 years, 1 month
Thumb Drive Question
by Beartooth
All of / on my main machine will go easily onto even a
modest thumb drive -- "df -h /" says only 11 GB; meseems I've
heard of other people keeping back-ups on thumb drives.
But what about the OS? If I were to put, say, the current
release of Fedora onto the same stick, would I be able to use
that, while visiting in-laws for instance, as if it were a live
CD =with= all my data?
--
Beartooth Implacable, Neo-Redneck Linux Enthusiast
Freedom is my issue : I'm pro-choice, pro-right-to-die,
pro-gun, and pro-term-limits. Without defiance, no liberty.
6 years, 1 month
syncing ESP on UEFI computers, was: F19 RAID1 drive died - what if it
was sda that died?
by Chris Murphy
Upstream md/mdadm list ( linux-raid(a)vger.kernel.org ) archives have a
bunch of proscriptions on using mdadm to sync EFI System partitions.
Last time I checked circa Fedora 21, the installer would in fact let
you setup a raid1 and mark it for use as /boot/efi (i.e. the ESP).
There are a bunch of logical and domain violations by doing this, but
the biggest reason for not doing it is if there is a change to either
ESP, mdadm raid cannot resolve the ambiguity, and if it discovers
mismatches in sectors between the two drives, it can mix and match the
fixups: some sectors from A go to B, and some sectors from B go to A.
And that's because mdadm has no idea which one is correct, only that
they are different, and a resync just makes them the same again. So it
can end up corrupting both ESPs.
The firmware is allowed to modify the ESP even though this is probably
rare in practice.
Anyway, I think it's better to change the symlink in /etc/
grub2-efi.cfg -> ../boot/efi/EFI/fedora/grub.cfg
So that it points to /boot/grub2/grub.cfg just as it does on BIOS
systems. Then create a "forwarding" grub.cfg on /boot/efi that goes
and finds the real grub.cfg. The real grub.cfg is on either /boot or /
on some kind of RAID so getting GRUB to find it is actually pretty
easy: it will look for an md UUID (the mdadm raid volume ID) and then
it needs to look for a file system volume UUID. Since these things are
the same on all member volumes, so long as you have the minimum drives
needed for successful degraded operation, GRUB will find the real
grub.cfg.
And GRUB finds the forwarding one, just by the fact it's in the same
directory on /boot/efi/EFI/fedora as the bootloader.
It's possible to use the real grub.cfg as a template, and just chop it
down to a few lines needed to search for the two UUIDs. And then use
the configfile command to point to the path to the real grub.cfg.
The result is completely seamless jump from the ESP forwarding
grub.cfg, to the /boot real grub.cfg. And by changing the /etc
symlink, grubby will update the real grub.cfg. And this will survive
major version upgrades. And it's more compatible with upstream GRUB.
Effectively the contents of /boot/efi (the ESP) never get modified, so
they two ESPs are never out of sync.
Just, if for any reason you need to recreate the grub.cfg from scratch
you have to put it on /boot/grub2 rather than /boot/efi.
And in the event of shim or grub update, you'll want to sync the ESPs
with e.g. rsync which you can do manually, as a one time thing.
Blah.
Chris Murphy
6 years, 1 month
Kernel installed in wrong location
by CLOSE Dave
Fedora 27 x86_64. When DNF installs a new kernel, it isn't going into
the right place (/boot) and is not detected by GRUB. Why not?
For example, after installing the most recent new kernel, I see this.
[root@machine ~]# ls /boot
7725dfc225d14958a625ddaaaea5962b
config-4.14.11-300.fc27.x86_64
efi
extlinux
grub2
initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
initramfs-4.14.11-300.fc27.x86_64.img
initrd-plymouth.img
loader
lost+found
System.map-4.14.11-300.fc27.x86_64
vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
vmlinuz-4.14.11-300.fc27.x86_64
[root@machine ~]# ls /boot/7725dfc225d14958a625ddaaaea5962b
0-rescue 4.13.10-200.fc26.x86_64 4.13.9-200.fc26.x86_64
4.11.11-300.fc26.x86_64 4.13.11-200.fc26.x86_64 4.14.11-300.fc27.x86_64
4.12.11-300.fc26.x86_64 4.13.12-200.fc26.x86_64 4.14.4-200.fc26.x86_64
4.12.12-300.fc26.x86_64 4.13.13-200.fc26.x86_64 4.14.5-200.fc26.x86_64
4.12.13-300.fc26.x86_64 4.13.15-100.fc25.x86_64 4.14.6-200.fc26.x86_64
4.12.14-300.fc26.x86_64 4.13.15-200.fc26.x86_64 4.15.8-300.fc27.x86_64
4.12.5-300.fc26.x86_64 4.13.16-200.fc26.x86_64 4.15.9-300.fc27.x86_64
4.12.8-300.fc26.x86_64 4.13.16-202.fc26.x86_64
4.12.9-300.fc26.x86_64 4.13.4-200.fc26.x86_64
But RPM thinks the new kernel was installed correctly!
[root@machine ~]# rpm -V kernel-core-4.15.9-300.fc27
(no output)
--
Dave Close
6 years, 1 month