Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Dzwonek systemowy nie działa

Zaczęty przez hubot_, Luty 11, 2017, 04:48:46 PM

Poprzedni wątek - Następny wątek

hubot_

Witam. Mam problem, że dzwonek systemowy nie wydaje dźwięku na Linuksie. Parametry mojego komputera:

System operacyjny: Debian 8 Jessie stable.
Architektura: amd64
Procesor: Dwurdzeniowy AMD Athlon™ II P340
Pamięć RAM: 3,072 (2,048 + 1,024) MB, DDR3 RAM (1066 MHz)
Częstotliwość taktowania procesora: 2.2 GHz

System dźwiękowy:
Producent : Toshiba Bass Enhanced Sound System
Obsługiwany format audio : Stereo 24 bity
Głośniki : Wbudowany głośnik stereofoniczny

Model komputera: Toshiba Satellite C660D-102

Oto moje próby włączenia dzwonka systemowego:
root@debian:~# lsmod
Module Size Used by
ctr 12927 1
ccm 17577 1
pci_stub 12429 1
vboxpci 22921 0
vboxnetadp 25540 0
vboxnetflt 27648 0
binfmt_misc 16949 1
vboxdrv 379704 3 vboxnetadp,vboxnetflt,vboxpci
pcspkr 12595 0
nfsd 262938 2
auth_rpcgss 51209 1 nfsd
oid_registry 12419 1 auth_rpcgss
nfs_acl 12511 1 nfsd
nfs 192232 0
lockd 83389 2 nfs,nfsd
fscache 45542 1 nfs
sunrpc 237364 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
uvcvideo 79048 0
videobuf2_vmalloc 12816 1 uvcvideo
videobuf2_memops 12519 1 videobuf2_vmalloc
videobuf2_core 47787 1 uvcvideo
v4l2_common 12995 1 videobuf2_core
videodev 126451 3 uvcvideo,v4l2_common,videobuf2_core
media 18305 2 uvcvideo,videodev
arc4 12536 2
rtl8192ce 52164 0
snd_hda_codec_realtek 67168 1
kvm_amd 59128 0
rtl_pci 25947 1 rtl8192ce
kvm 392897 1 kvm_amd
snd_hda_codec_generic 63181 1 snd_hda_codec_realtek
rtlwifi 54719 2 rtl_pci,rtl8192ce
rtl8192c_common 40162 1 rtl8192ce
mac80211 482315 3 rtl_pci,rtlwifi,rtl8192ce
snd_hda_intel 26407 3
joydev 17063 0
snd_hda_controller 26646 1 snd_hda_intel
k10temp 12618 0
serio_raw 12849 0
snd_hda_codec 104500 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
edac_mce_amd 21166 0
cfg80211 413730 2 mac80211,rtlwifi
snd_hwdep 13148 1 snd_hda_codec
edac_core 47321 0
snd_pcm 88662 3 snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer 26720 1 snd_pcm
snd 65338 13 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
sp5100_tco 12864 0
soundcore 13026 2 snd,snd_hda_codec
toshiba_acpi 27096 0
i2c_piix4 20864 0
sparse_keymap 12818 1 toshiba_acpi
rfkill 18867 4 cfg80211,toshiba_acpi
wmi 17339 1 toshiba_acpi
ene_ir 17718 0
rc_core 22404 1 ene_ir
shpchp 31121 0
toshiba_bluetooth 12641 0
evdev 17445 13
battery 13356 0
ac 12715 0
acpi_cpufreq 17218 0
processor 28221 1 acpi_cpufreq
vmhgfs 65266 0
vmw_vmci 55383 1 vmhgfs
fuse 83350 3
parport_pc 26300 0
ppdev 16782 0
lp 17074 0
parport 35749 3 lp,ppdev,parport_pc
autofs4 35529 2
ext4 477894 2
crc16 12343 1 ext4
mbcache 17171 1 ext4
jbd2 82514 1 ext4
xts 12679 1
gf128mul 12970 1 xts
algif_skcipher 17349 0
af_alg 13034 1 algif_skcipher
dm_crypt 22595 1
dm_mod 89405 9 dm_crypt
hid_generic 12393 0
usbhid 44460 0
hid 102264 2 hid_generic,usbhid
sg 29973 0
sd_mod 44356 3
crc_t10dif 12431 1 sd_mod
crct10dif_generic 12581 1
sr_mod 21903 0
crct10dif_common 12356 2 crct10dif_generic,crc_t10dif
cdrom 47424 1 sr_mod
radeon 1349406 3
i2c_algo_bit 12751 1 radeon
ttm 77862 1 radeon
drm_kms_helper 49210 1 radeon
psmouse 99249 0
ohci_pci 12808 0
drm 249998 6 ttm,drm_kms_helper,radeon
i2c_core 46012 7 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,v4l2_common,radeon,videodev
video 18096 0
thermal_sys 27642 2 video,processor
ahci 33334 2
libahci 27158 1 ahci
libata 177508 2 ahci,libahci
button 12944 0
ehci_pci 12512 0
ohci_hcd 42982 1 ohci_pci
ehci_hcd 69837 1 ehci_pci
r8169 68262 0
mii 12675 1 r8169
scsi_mod 191405 4 sg,libata,sd_mod,sr_mod
usbcore 195468 6 uvcvideo,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid
usb_common 12440 1 usbcore
root@debian:~# lsmod | grep pcspkr
pcspkr 12595 0
root@debian:~# modprobe pcspkr
root@debian:~# apt-get install beep
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
beep
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/27.4 kB of archives.
After this operation, 43.0 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package beep.
(Reading database ... 331215 files and directories currently installed.)
Preparing to unpack .../beep_1.3-3+b1_amd64.deb ...
Unpacking beep (1.3-3+b1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up beep (1.3-3+b1) ...
====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ======

----- Show old opportunities as well as new ones: how-can-i-help --old -----
root@debian:~# beep
[brak dźwięku]
root@debian:~# reboot
[restart komputera]
root@debian:~# beep
[brak dźwięku]
root@debian:~# cat /etc/modprobe.d/
amd64-microcode-blacklist.conf intel-microcode-blacklist.conf
dkms.conf modesetting.conf
fbdev-blacklist.conf open-vm-tools-dkms.conf
root@debian:~# cat /etc/modprobe.d/amd64-microcode-blacklist.conf
# The microcode module attempts to apply a microcode update when
# it autoloads. This is not always safe, so we block it by default.
blacklist microcode
blacklist snd_pcsp
root@debian:~# cat /etc/modprobe.d/intel-microcode-blacklist.conf
# The microcode module attempts to apply a microcode update when
# it autoloads. This is not always safe, so we block it by default.
blacklist microcode
root@debian:~# cat /etc/modprobe.d/fbdev-blacklist.conf
# This file blacklists most old-style PCI framebuffer drivers.

blacklist arkfb
blacklist aty128fb
blacklist atyfb
blacklist radeonfb
blacklist cirrusfb
blacklist cyber2000fb
blacklist kyrofb
blacklist matroxfb_base
blacklist mb862xxfb
blacklist neofb
blacklist pm2fb
blacklist pm3fb
blacklist s3fb
blacklist savagefb
blacklist sisfb
blacklist tdfxfb
blacklist tridentfb
blacklist vt8623fb
root@debian:~# cat /etc/modprobe.d/
amd64-microcode-blacklist.conf intel-microcode-blacklist.conf
dkms.conf modesetting.conf
fbdev-blacklist.conf open-vm-tools-dkms.conf
root@debian:~# cat /etc/modprobe.d/dkms.conf
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.
root@debian:~# cat /etc/modprobe.d/dkms.conf
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.
root@debian:~# cat /etc/modprobe.d/modesetting.conf
options cirrus modeset=1
options mgag200 modeset=1
root@debian:~# cat /etc/modprobe.d/open-vm-tools-dkms.conf
install pcnet32 /sbin/modprobe -q --ignore-install vmxnet; /sbin/modprobe -q --ignore-install pcnet32 $CMDLINE_OPTS; /bin/true;
root@debian:~# vi /etc/rc.local
root@debian:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#/sbin/iptables-restore < /etc/iptables.firewall.rules
#/sbin/ip6tables-restore < /etc/ip6tables.firewall.rules

modprobe -r pcspkr
modprobe pcspkr

exit 0
root@debian:~# modprobe pcspkr -vvv
modprobe: INFO: ../libkmod/libkmod.c:354 kmod_set_log_fn() custom logging function 0x7f205336e440 registered
modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.16.0-4-amd64/modules.dep.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.16.0-4-amd64/modules.alias.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.16.0-4-amd64/modules.symbols.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.16.0-4-amd64/modules.builtin.bin
modprobe: DEBUG: ../libkmod/libkmod-module.c:540 kmod_module_new_from_lookup() input alias=pcspkr, normalized=pcspkr
modprobe: DEBUG: ../libkmod/libkmod-module.c:546 kmod_module_new_from_lookup() lookup modules.dep pcspkr
modprobe: DEBUG: ../libkmod/libkmod.c:545 kmod_search_moddep() use mmaped index 'modules.dep' modname=pcspkr
modprobe: DEBUG: ../libkmod/libkmod.c:392 kmod_pool_get_module() get module name='pcspkr' found=(nil)
modprobe: DEBUG: ../libkmod/libkmod.c:400 kmod_pool_add_module() add 0x7f20552486c0 key='pcspkr'
modprobe: DEBUG: ../libkmod/libkmod-module.c:196 kmod_module_parse_depline() 0 dependencies for pcspkr
modprobe: DEBUG: ../libkmod/libkmod-module.c:567 kmod_module_new_from_lookup() lookup pcspkr=0, list=0x7f205524a280
modprobe: DEBUG: ../libkmod/libkmod-module.c:452 kmod_module_unref() kmod_module 0x7f20552486c0 released
modprobe: DEBUG: ../libkmod/libkmod.c:408 kmod_pool_del_module() del 0x7f20552486c0 key='pcspkr'
modprobe: INFO: ../libkmod/libkmod.c:321 kmod_unref() context 0x7f2055248290 released
root@debian:~# modprobe pcspkr
root@debian:~# depmod -ae && update-initramfs -u
root@debian:~# reboot
[restart komputera]
root@debian:~# echo -e "\a"
[brak dźwięku]


Próbowałem różnych sposobów z różnych forów ale one nie działają. Macie powyżej dane wyjściowe z tty. Mam nadzieję, że Wy mi pomożecie rozwiązać ten problem. Chciałbym móc wywołać dźwięk z buzzera na płycie głównej. Buzzer działa. Miałem kiedyś Windowsa i wydawał z siebie dźwięki.
Stacjonarka: Slackware Xfce
Laptop: Debian GNOME | Gentoo i3 (do testów)

pavroo

Witaj
Czy speaker nie jest blacklisted (snd_pcsp)?
Cytatroot@debian:~# cat /etc/modprobe.d/amd64-microcode-blacklist.conf
# The microcode module attempts to apply a microcode update when
# it autoloads. This is not always safe, so we block it by default.
blacklist microcode
blacklist snd_pcsp
Następnie:
modprobe -r pcspkr snd_pcsp
modprobe pcspkr snd_pcsp
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

Zobacz najnowsze wiadomości na forum