CD tray opens then closes immediately

Post here if you are a new Porteus member and you're looking for some help.
0leshka
White ninja
White ninja
Posts: 8
Joined: 21 Dec 2018, 09:16
Distribution: Porteus v4.0 mate

CD tray opens then closes immediately

Post#1 by 0leshka » 08 Feb 2019, 17:11

Hello! Any version Porteus cd tray opens then closes immediately. Need to hurry to get the disk. Thank you!

User avatar
Ed_P
Contributor
Contributor
Posts: 8342
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: CD tray opens then closes immediately

Post#2 by Ed_P » 08 Feb 2019, 17:24

What command are you using that causes the tray to open?
Ed

0leshka
White ninja
White ninja
Posts: 8
Joined: 21 Dec 2018, 09:16
Distribution: Porteus v4.0 mate

Re: CD tray opens then closes immediately

Post#3 by 0leshka » 08 Feb 2019, 18:17

Ed_P, menu command "Eject" KDE Dolphin file manager today.

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: CD tray opens then closes immediately

Post#4 by donald » 08 Feb 2019, 19:09

Try this:

Code: Select all

root@porteus:/home/guest# sysctl -w dev.cdrom.autoclose=0

0leshka
White ninja
White ninja
Posts: 8
Joined: 21 Dec 2018, 09:16
Distribution: Porteus v4.0 mate

Re: CD tray opens then closes immediately

Post#5 by 0leshka » 08 Feb 2019, 19:25

Thanks! How to save this parameter when rebooting?

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: CD tray opens then closes immediately

Post#6 by donald » 08 Feb 2019, 20:02

edit as root
/etc/rc.d/rc.local

Code: Select all

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
sysctl -w dev.cdrom.autoclose=0

0leshka
White ninja
White ninja
Posts: 8
Joined: 21 Dec 2018, 09:16
Distribution: Porteus v4.0 mate

Re: CD tray opens then closes immediately

Post#7 by 0leshka » 08 Feb 2019, 20:39

Thank you!

Post Reply