ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Speccyfighter <zxwarior@yandex.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] I: p7 starterkits (20131225)
Date: Thu, 13 Feb 2014 10:36:20 +0300
Message-ID: <52FC75F4.2000709@yandex.ru> (raw)
In-Reply-To: <350211392257478@web29g.yandex.ru>

13.02.2014 05:11, Алексей Варакин пишет:
> Здравствуйте!
> А разве "echo "0" > /proc/sys/dev/cdrom/lock" не помогает?
>

Не помогает:

$ cat /proc/sys/dev/cdrom/lock
0

ИМХО временно, пока не пофиксится, лучше положить алиасом:

$ echo "alias eject='sdparm -C unlock /dev/sr0 && eject'" >> $HOME/.bashrc

Например щупать кнопку привода в темноте под столом занятие
не из приятных.
Да и ломать всегда работавший программный функционал, по-моему,
это очень плохая идея.
При наличии алиаса и yakuake всё упрощается до предела.
Чтобы обойти невозможность менюшки, можно эту связку на кнопку
повесить, а кнопку на панель задач. Но это костыль.


> 12.02.2014, 21:46, "Speccyfighter" <zxwarior@yandex.ru>:
>> 11.02.2014 00:33, Michael Shigorin пишет:
>>
>>>  On Sun, Jan 05, 2014 at 11:35:44AM +0400, Speccyfighter wrote:
>>>>  Ещё одно:
>>>>  # sdparm -C unlock /dev/sr0
>>>>      /dev/sr0: Optiarc   DVD RW AD-7240S   1.01  [cd/dvd]
>>>>
>>>>  И после этого нормально.
>>>  Забавно.
>>
>> Не очень. :-)
>> Если положить в привод матрицу, не монтировать и оставить минут на 10,
>> eject не сможет вытолкнуть лоток:
>>
>> $ eject -r
>> eject: не удалось извлечь. Последняя ошибка : Ошибка ввода/вывода
>>
>> $ eject -s
>> eject: не удалось извлечь. Последняя ошибка : Неправильный адрес
>>
>> $ eject
>> eject: не удалось извлечь. Последняя ошибка : Неприменимый к данному
>> устройству ioctl
>>
>> $ strace -e ioctl eject
>> ioctl(3, CDROMEJECT, 0x804c44b)         = -1 EIO (Input/output error)
>> ioctl(3, SG_GET_VERSION_NUM, 0xbf8eaacc) = 0
>> ioctl(3, SG_IO, {'S', SG_DXFER_NONE, cmd[6]=[1e, 00, 00, 00, 00, 00],
>> mx_sb_len=32, iovec_count=0, dxfer_len=0, timeout=2000, flags=0}) = -1
>> EFAULT (Bad address)
>> ioctl(3, FDEJECT, 0xbf8eab08)           = -1 ENOTTY (Inappropriate ioctl
>> for device)
>> ioctl(3, MGSL_IOCGPARAMS or MMTIMER_GETRES or MTIOCTOP or
>> SNDCTL_MIDI_MPUMODE, 0xbf8eaae0) = -1 ENOTTY (Inappropriate ioctl for
>> device)
>> eject: не удалось извлечь. Последняя ошибка : Неприменимый к данному
>> устройству ioctl
>> +++ exited with 1 +++
>>
>> $ sdparm -C unlock /dev/sr0
>>      /dev/sr0: Optiarc   DVD RW AD-7240S   1.01  [cd/dvd]
>>
>> $ strace -e ioctl eject
>> ioctl(3, CDROMEJECT, 0x804c44b)         = 0
>> +++ exited with 0 +++
>>
>> Но после вталкивания лотка с матрицей, по таймауту всё повторится снова.
>> При наличии sdparm, можно через алиас связкой sdparm+eject.
>> Но арчеводы решили у себя программно:
>> http://archlinux.org.ru/forum/topic/5088/
>> http://archlinux.org.ru/forum/topic/5088/?page=2
>>
>>>   Но можно положить -- так-то подобным утилитам место
>>>  именно в спасательном образе, а вышепоскипанное -- баг,
>>>  который с помощью sdparm объезжается.  Надо?
>>
>> Пока не пофиксится 'только кнопкой', надо бы.
>>





  reply	other threads:[~2014-02-13  7:36 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-25 18:39 Michael Shigorin
2013-12-27  0:22 ` Michael Shigorin
2014-01-05  2:17   ` Speccyfighter
2014-01-05  2:26     ` Speccyfighter
2014-01-05  7:35     ` Speccyfighter
2014-02-10 21:33       ` Michael Shigorin
2014-02-12 14:46         ` Speccyfighter
2014-02-13  2:11           ` Алексей Варакин
2014-02-13  7:36             ` Speccyfighter [this message]
2014-02-13  8:03             ` Speccyfighter
2014-01-05 19:04     ` Speccyfighter
2014-01-05 21:29       ` Michael Shigorin
2014-01-06  1:03         ` Speccyfighter
2014-02-10 21:33     ` Michael Shigorin
2014-02-12 14:29       ` Speccyfighter
2014-02-13  8:57         ` Michael Shigorin
2014-02-14 12:54           ` Speccyfighter
2014-03-01 19:51             ` [Comm] I: p7 starterkits (sysv-tde) Michael Shigorin
2014-03-09  3:25               ` Speccyfighter
2014-03-09  6:03                 ` Алексей Варакин
2014-03-09  6:38                 ` Sergey
2014-03-09  7:35                   ` REAL
2014-03-09  8:35                   ` [Comm] p7, RTC и UTC Sergey
2014-03-09  1:37                     ` Speccyfighter
2014-03-10  8:29                       ` Michael Shigorin
2014-03-10  9:09                       ` Sergey Vlasov
2014-03-10  9:45                         ` REAL
2014-03-10 11:11                           ` Michael Shigorin
2014-03-10 11:34                           ` Sergey Vlasov
2014-03-10 11:52                             ` REAL
2014-03-09  8:40                     ` Sergey
2014-03-09 15:40                       ` Michael Shigorin
2014-03-09 15:40                 ` [Comm] I: p7 starterkits (sysv-tde) Michael Shigorin
2013-12-30 16:22 ` [Comm] I: p7 starterkits (20131225) Dank Bagryantsev
2013-12-30 17:25   ` Michael Shigorin
2013-12-30 20:39     ` Dank Bagryantsev
2013-12-31 13:54       ` Michael Shigorin
2013-12-31  9:50     ` Andrii Dobrovol`s`kii
2013-12-31 10:04       ` Michael Shigorin
2013-12-31 10:14         ` Andrii Dobrovol`s`kii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52FC75F4.2000709@yandex.ru \
    --to=zxwarior@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git