Lines 106-116
Link Here
|
106 |
|
106 |
|
107 |
if (nv->card < nvclock.num_cards) { |
107 |
if (nv->card < nvclock.num_cards) { |
108 |
clog(LOG_INFO, "Setting nv_core for card %i to (%u)\n", nv->card, nv->value); |
108 |
clog(LOG_INFO, "Setting nv_core for card %i to (%u)\n", nv->card, nv->value); |
109 |
set_card(nv->card); |
|
|
110 |
nvclock.card[nv->card].gpu = DESKTOP; |
109 |
nvclock.card[nv->card].gpu = DESKTOP; |
111 |
nv_card.number = -1; /* Force a re-init of the function pointers */ |
110 |
nv_card.number = -1; /* Force a re-init of the function pointers */ |
112 |
set_card(nv->card); |
111 |
set_card(nv->card); |
113 |
nv_card.set_gpu_speed(nv->value); |
112 |
nv_card.set_gpu_speed(nv->value); |
|
|
113 |
unset_card(nv->card); |
114 |
} |
114 |
} |
115 |
} |
115 |
} |
116 |
|
116 |
|
Lines 119-129
Link Here
|
119 |
|
119 |
|
120 |
if (nv->card < nvclock.num_cards) { |
120 |
if (nv->card < nvclock.num_cards) { |
121 |
clog(LOG_INFO, "Setting nv_mem for card %i to (%u)\n", nv->card, nv->value); |
121 |
clog(LOG_INFO, "Setting nv_mem for card %i to (%u)\n", nv->card, nv->value); |
122 |
set_card(nv->card); |
|
|
123 |
nvclock.card[nv->card].gpu = DESKTOP; |
122 |
nvclock.card[nv->card].gpu = DESKTOP; |
124 |
nv_card.number = -1; /* Force a re-init of the function pointers */ |
123 |
nv_card.number = -1; /* Force a re-init of the function pointers */ |
125 |
set_card(nv->card); |
124 |
set_card(nv->card); |
126 |
nv_card.set_memory_speed(nv->value); |
125 |
nv_card.set_memory_speed(nv->value); |
|
|
126 |
unset_card(nv->card); |
127 |
} |
127 |
} |
128 |
} |
128 |
} |
129 |
|
129 |
|