Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #194286 > unrolled thread

Activate/deactivate kernel parameters without reboot

Started byrv riveravaldez <riveravaldezmail@gmail.com>
First post2018-03-30 00:30 +0200
Last post2018-03-30 13:10 +0200
Articles 9 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  Activate/deactivate kernel parameters without reboot rv riveravaldez <riveravaldezmail@gmail.com> - 2018-03-30 00:30 +0200
    Re: Activate/deactivate kernel parameters without reboot Stefan Monnier <monnier@iro.umontreal.ca> - 2018-03-30 04:30 +0200
      Re: Activate/deactivate kernel parameters without reboot rv riveravaldez <riveravaldezmail@gmail.com> - 2018-03-30 10:00 +0200
        Re: Activate/deactivate kernel parameters without reboot <tomas@tuxteam.de> - 2018-03-30 12:00 +0200
          Re: Activate/deactivate kernel parameters without reboot Reco <recoverym4n@gmail.com> - 2018-03-30 13:50 +0200
            Re: Activate/deactivate kernel parameters without reboot <tomas@tuxteam.de> - 2018-03-30 14:00 +0200
            Re: Activate/deactivate kernel parameters without reboot Michael Lange <klappnase@freenet.de> - 2018-03-30 16:30 +0200
              Re: Activate/deactivate kernel parameters without reboot Reco <recoverym4n@gmail.com> - 2018-03-30 18:00 +0200
        Re: Activate/deactivate kernel parameters without reboot Morel Bérenger <berenger.morel@sga-automation.com> - 2018-03-30 13:10 +0200

#194286 — Activate/deactivate kernel parameters without reboot

Fromrv riveravaldez <riveravaldezmail@gmail.com>
Date2018-03-30 00:30 +0200
SubjectActivate/deactivate kernel parameters without reboot
Message-ID<vyOdr-6Lw-1@gated-at.bofh.it>
Hi,

I'm running with a 'nouveau.noaccel=1' kernel parameter added at hand
at boot (for a random freeze that appears with nouveau driver and the
NVIDIA C61 [GeForce 7025 / nForce 630a] (rev a2) GPU).

Is there any way to deactivate and reactivate such a parameter without
the need to reboot?

Thanks a lot!

[toc] | [next] | [standalone]


#194289

FromStefan Monnier <monnier@iro.umontreal.ca>
Date2018-03-30 04:30 +0200
Message-ID<vyRXI-Py-3@gated-at.bofh.it>
In reply to#194286
> I'm running with a 'nouveau.noaccel=1' kernel parameter added at hand
[...]
> Is there any way to deactivate and reactivate such a parameter without
> the need to reboot?

You can try and change it with

    # echo 0 > /sys/modules/<MODULENAME>/parameters/noaccel


-- Stefan

[toc] | [prev] | [next] | [standalone]


#194299

Fromrv riveravaldez <riveravaldezmail@gmail.com>
Date2018-03-30 10:00 +0200
Message-ID<vyX74-45d-1@gated-at.bofh.it>
In reply to#194289
On Thu, Mar 29, 2018 at 11:28 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> I'm running with a 'nouveau.noaccel=1' kernel parameter added at hand
> [...]
>> Is there any way to deactivate and reactivate such a parameter without
>> the need to reboot?
>
> You can try and change it with
>
>     # echo 0 > /sys/modules/<MODULENAME>/parameters/noaccel
>
>
> -- Stefan

Hi, thanks a lot.

I tried it in both situations with same result.

Deactivate:

# cat /sys/module/nouveau/parameters/noaccel
1
# echo 0 > /sys/module/nouveau/parameters/noaccel
bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado

Activate:

# cat /sys/module/nouveau/parameters/noaccel

0
# echo 1 > /sys/module/nouveau/parameters/noaccel
bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado


'Permiso denegado' means 'Permission denied'.


What else shoud/could I do?


Thanks again!

[toc] | [prev] | [next] | [standalone]


#194302

From<tomas@tuxteam.de>
Date2018-03-30 12:00 +0200
Message-ID<vyYZb-5gv-1@gated-at.bofh.it>
In reply to#194299
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Mar 30, 2018 at 04:50:06AM -0300, rv riveravaldez wrote:
> On Thu, Mar 29, 2018 at 11:28 PM, Stefan Monnier
> <monnier@iro.umontreal.ca> wrote:
> >> I'm running with a 'nouveau.noaccel=1' kernel parameter added at hand
> > [...]
> >> Is there any way to deactivate and reactivate such a parameter without
> >> the need to reboot?
> >
> > You can try and change it with
> >
> >     # echo 0 > /sys/modules/<MODULENAME>/parameters/noaccel
> >
> >
> > -- Stefan
> 
> Hi, thanks a lot.
> 
> I tried it in both situations with same result.
> 
> Deactivate:
> 
> # cat /sys/module/nouveau/parameters/noaccel
> 1
> # echo 0 > /sys/module/nouveau/parameters/noaccel
> bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado
> 
> Activate:
> 
> # cat /sys/module/nouveau/parameters/noaccel
> 0
> # echo 1 > /sys/module/nouveau/parameters/noaccel
> bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado
> 
> 
> 'Permiso denegado' means 'Permission denied'.
> 
> 
> What else shoud/could I do?

You have to be root to change those things. Try

  sudo bash -c "echo 0 > /sys/module/nouveau/parameters/noaccel"

It will ask you for your password.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlq+CHYACgkQBcgs9XrR2kbUoQCfSWss+r2d5H9ntGXsj43UERzA
ZkQAn2MFTAEbdefe/mdnYUpHYJ+kNyWb
=sjIM
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#194304

FromReco <recoverym4n@gmail.com>
Date2018-03-30 13:50 +0200
Message-ID<vz0HD-6mX-5@gated-at.bofh.it>
In reply to#194302
	Hi.

On Fri, Mar 30, 2018 at 11:50:46AM +0200, tomas@tuxteam.de wrote:
> On Fri, Mar 30, 2018 at 04:50:06AM -0300, rv riveravaldez wrote:
> > On Thu, Mar 29, 2018 at 11:28 PM, Stefan Monnier
> > <monnier@iro.umontreal.ca> wrote:
> > >> I'm running with a 'nouveau.noaccel=1' kernel parameter added at hand
> > > [...]
> > >> Is there any way to deactivate and reactivate such a parameter without
> > >> the need to reboot?
> > >
> > > You can try and change it with
> > >
> > >     # echo 0 > /sys/modules/<MODULENAME>/parameters/noaccel
> > >
> > >
> > > -- Stefan
> > 
> > Hi, thanks a lot.
> > 
> > I tried it in both situations with same result.
> > 
> > Deactivate:
> > 
> > # cat /sys/module/nouveau/parameters/noaccel
> > 1
> > # echo 0 > /sys/module/nouveau/parameters/noaccel
> > bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado
> > 
> > Activate:
> > 
> > # cat /sys/module/nouveau/parameters/noaccel
> > 0
> > # echo 1 > /sys/module/nouveau/parameters/noaccel
> > bash: /sys/module/nouveau/parameters/noaccel: Permiso denegado
> > 
> > 
> > 'Permiso denegado' means 'Permission denied'.
> > 
> > 
> > What else shoud/could I do?
> 
> You have to be root to change those things. Try
> 
>   sudo bash -c "echo 0 > /sys/module/nouveau/parameters/noaccel"
> 
> It will ask you for your password.

It won't do any good, because:

# ls -al /sys/module/nouveau/parameters/noaccel
-r-------- 1 root root 4096 Mar 30 14:37 /sys/module/nouveau/parameters/noaccel

Permissions of '400' in these case mean that its impossible to change
this module parameter via /sys (and changing them to 600 won't work
either). So, to answer the original question - yes, the reboot is required.

Reco

[toc] | [prev] | [next] | [standalone]


#194305

From<tomas@tuxteam.de>
Date2018-03-30 14:00 +0200
Message-ID<vz0Rj-6q6-3@gated-at.bofh.it>
In reply to#194304
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Mar 30, 2018 at 02:40:21PM +0300, Reco wrote:
> 	Hi.

[...]

> It won't do any good, because:
> 
> # ls -al /sys/module/nouveau/parameters/noaccel
> -r-------- 1 root root 4096 Mar 30 14:37 /sys/module/nouveau/parameters/noaccel

Uh-oh. Didn't see that...

> Permissions of '400' in these case mean that its impossible to change
> this module parameter via /sys (and changing them to 600 won't work
> either). So, to answer the original question - yes, the reboot is required.

Thanks for the clarification

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlq+JjAACgkQBcgs9XrR2kZCsQCff1PKu9iWokCE1s7qNXJXL/pW
G28AnimwvnaeiO3IMe/L9KPgJcD43aWq
=1hpb
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#194314

FromMichael Lange <klappnase@freenet.de>
Date2018-03-30 16:30 +0200
Message-ID<vz3cu-82h-7@gated-at.bofh.it>
In reply to#194304
Hi,

On Fri, 30 Mar 2018 14:40:21 +0300
Reco <recoverym4n@gmail.com> wrote:

> 
> It won't do any good, because:
> 
> # ls -al /sys/module/nouveau/parameters/noaccel
> -r-------- 1 root root 4096 Mar 30
> 14:37 /sys/module/nouveau/parameters/noaccel
> 
> Permissions of '400' in these case mean that its impossible to change
> this module parameter via /sys (and changing them to 600 won't work
> either). So, to answer the original question - yes, the reboot is
> required.

I never tried, but shouldn't it be possible to do

    # modprobe -r nouveau && modprobe nouveau <options> 

in case one wants to avoid the reboot?
Just a thought...

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

No one can guarantee the actions of another.
		-- Spock, "Day of the Dove", stardate unknown

[toc] | [prev] | [next] | [standalone]


#194319

FromReco <recoverym4n@gmail.com>
Date2018-03-30 18:00 +0200
Message-ID<vz4Bz-vr-7@gated-at.bofh.it>
In reply to#194314
	Hi.

On Fri, Mar 30, 2018 at 04:20:53PM +0200, Michael Lange wrote:
> Hi,
> 
> On Fri, 30 Mar 2018 14:40:21 +0300
> Reco <recoverym4n@gmail.com> wrote:
> 
> > 
> > It won't do any good, because:
> > 
> > # ls -al /sys/module/nouveau/parameters/noaccel
> > -r-------- 1 root root 4096 Mar 30
> > 14:37 /sys/module/nouveau/parameters/noaccel
> > 
> > Permissions of '400' in these case mean that its impossible to change
> > this module parameter via /sys (and changing them to 600 won't work
> > either). So, to answer the original question - yes, the reboot is
> > required.
> 
> I never tried, but shouldn't it be possible to do
> 
>     # modprobe -r nouveau && modprobe nouveau <options> 
> 
> in case one wants to avoid the reboot?
> Just a thought...

It should be possible, but chances are - something is using this
module. Most likely it's X (killing X should solve it) and a kernel
framebuffer (nothing to kill there).

Reboot is a must here, unless one's willing to accept the risk of kernel
panic and force unload nouveau.

Reco

[toc] | [prev] | [next] | [standalone]


#194303

FromMorel Bérenger <berenger.morel@sga-automation.com>
Date2018-03-30 13:10 +0200
Message-ID<vz04V-68A-1@gated-at.bofh.it>
In reply to#194299

[Multipart message — attachments visible in raw view] — view raw

Hello.

Le Fri, 30 Mar 2018 04:50:06 -0300,
rv riveravaldez <riveravaldezmail@gmail.com> a écrit :
> 'Permiso denegado' means 'Permission denied'.
> 
> 
> What else shoud/could I do?

Maybe you could try to unload the module before changing it's setup?


-- 
SGA Automation
27 Rue Jean-Philippe Rameau
Pôle Delta
76000 Rouen
Tel : 02 32 10 38 53
Fax : 02 32 10 11 30
www.sga-automation.com
Email : berenger.morel@sga-automation.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web